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 {
814
814
///
815
815
/// If this file handle/descriptor, or a clone of it, already holds a lock, the exact behavior
816
816
/// 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.
818
818
///
819
819
/// If the file is not open for writing, it is unspecified whether this function returns an error.
820
820
///
@@ -879,7 +879,7 @@ impl File {
879
879
///
880
880
/// If this file handle, or a clone of it, already holds a lock, the exact behavior is
881
881
/// 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.
883
883
///
884
884
/// The lock will be released when this file (along with any other file descriptors/handles
885
885
/// 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