@@ -682,11 +682,11 @@ impl File {
682
682
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
683
683
/// cause non-lockholders to block.
684
684
///
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
686
686
/// is unspecified and platform dependent, including the possibility that it will deadlock.
687
687
/// However, if this method returns, then an exclusive lock is held.
688
688
///
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.
690
690
///
691
691
/// The lock will be released when this file (along with any other file descriptors/handles
692
692
/// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
@@ -736,7 +736,7 @@ impl File {
736
736
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
737
737
/// cause non-lockholders to block.
738
738
///
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
740
740
/// is unspecified and platform dependent, including the possibility that it will deadlock.
741
741
/// However, if this method returns, then a shared lock is held.
742
742
///
@@ -790,11 +790,11 @@ impl File {
790
790
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
791
791
/// cause non-lockholders to block.
792
792
///
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
794
794
/// is unspecified and platform dependent, including the possibility that it will deadlock.
795
795
/// However, if this method returns `Ok(true)`, then it has acquired an exclusive lock.
796
796
///
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.
798
798
///
799
799
/// The lock will be released when this file (along with any other file descriptors/handles
800
800
/// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
@@ -855,7 +855,7 @@ impl File {
855
855
/// other methods, such as [`read`] and [`write`] are platform specific, and it may or may not
856
856
/// cause non-lockholders to block.
857
857
///
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
859
859
/// unspecified and platform dependent, including the possibility that it will deadlock.
860
860
/// However, if this method returns `Ok(true)`, then it has acquired a shared lock.
861
861
///
0 commit comments