File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ impl File {
814814 ///
815815 /// If this file handle/descriptor, or a clone of it, already holds a lock, the exact behavior
816816 /// is unspecified and platform dependent, including the possibility that it will deadlock.
817- /// However, if this method returns `Ok(true )`, then it has acquired an exclusive lock.
817+ /// However, if this method returns `Ok(() )`, then it has acquired an exclusive lock.
818818 ///
819819 /// If the file is not open for writing, it is unspecified whether this function returns an error.
820820 ///
@@ -879,7 +879,7 @@ impl File {
879879 ///
880880 /// If this file handle, or a clone of it, already holds a lock, the exact behavior is
881881 /// unspecified and platform dependent, including the possibility that it will deadlock.
882- /// However, if this method returns `Ok(true )`, then it has acquired a shared lock.
882+ /// However, if this method returns `Ok(() )`, then it has acquired a shared lock.
883883 ///
884884 /// The lock will be released when this file (along with any other file descriptors/handles
885885 /// duplicated or inherited from it) is closed, or if the [`unlock`] method is called.
You can’t perform that action at this time.
0 commit comments