Skip to content

Commit 2780e3f

Browse files
authored
Unrolled build for #142760
Rollup merge of #142760 - epage:lock, r=tgross35 docs(fs): Touch up grammar on lock api
2 parents 4e97337 + 977752f commit 2780e3f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/std/src/fs.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,11 @@ impl File {
682682
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
683683
/// cause non-lockholders to block.
684684
///
685-
/// If this file handle/descriptor, or a clone of it, already holds an lock the exact behavior
685+
/// If this file handle/descriptor, or a clone of it, already holds a lock the exact behavior
686686
/// is unspecified and platform dependent, including the possibility that it will deadlock.
687687
/// However, if this method returns, then an exclusive lock is held.
688688
///
689-
/// If the file not open for writing, it is unspecified whether this function returns an error.
689+
/// If the file is not open for writing, it is unspecified whether this function returns an error.
690690
///
691691
/// The lock will be released when this file (along with any other file descriptors/handles
692692
/// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
@@ -736,7 +736,7 @@ impl File {
736736
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
737737
/// cause non-lockholders to block.
738738
///
739-
/// If this file handle/descriptor, or a clone of it, already holds an lock, the exact behavior
739+
/// If this file handle/descriptor, or a clone of it, already holds a lock, the exact behavior
740740
/// is unspecified and platform dependent, including the possibility that it will deadlock.
741741
/// However, if this method returns, then a shared lock is held.
742742
///
@@ -790,11 +790,11 @@ impl File {
790790
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
791791
/// cause non-lockholders to block.
792792
///
793-
/// If this file handle/descriptor, or a clone of it, already holds an lock, the exact behavior
793+
/// If this file handle/descriptor, or a clone of it, already holds a lock, the exact behavior
794794
/// is unspecified and platform dependent, including the possibility that it will deadlock.
795795
/// However, if this method returns `Ok(true)`, then it has acquired an exclusive lock.
796796
///
797-
/// If the file not open for writing, it is unspecified whether this function returns an error.
797+
/// If the file is not open for writing, it is unspecified whether this function returns an error.
798798
///
799799
/// The lock will be released when this file (along with any other file descriptors/handles
800800
/// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
@@ -855,7 +855,7 @@ impl File {
855855
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
856856
/// cause non-lockholders to block.
857857
///
858-
/// If this file handle, or a clone of it, already holds an lock, the exact behavior is
858+
/// If this file handle, or a clone of it, already holds a lock, the exact behavior is
859859
/// unspecified and platform dependent, including the possibility that it will deadlock.
860860
/// However, if this method returns `Ok(true)`, then it has acquired a shared lock.
861861
///

0 commit comments

Comments
 (0)