Skip to content

Commit e48e279

Browse files
joshtriplettgitbot
authored and
gitbot
committed
Clarify that locking on Windows also works for files opened with .read(true)
1 parent c97d07e commit e48e279

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

std/src/fs.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ impl File {
649649
/// this [may change in the future][changes].
650650
///
651651
/// On Windows, locking a file will fail if the file is opened only for append. To lock a file,
652-
/// open it with either `.read(true).append(true)` or `.write(true)`.
652+
/// open it with one of `.read(true)`, `.read(true).append(true)`, or `.write(true)`.
653653
///
654654
/// [changes]: io#platform-specific-behavior
655655
///
@@ -702,7 +702,7 @@ impl File {
702702
/// [may change in the future][changes].
703703
///
704704
/// On Windows, locking a file will fail if the file is opened only for append. To lock a file,
705-
/// open it with either `.read(true).append(true)` or `.write(true)`.
705+
/// open it with one of `.read(true)`, `.read(true).append(true)`, or `.write(true)`.
706706
///
707707
/// [changes]: io#platform-specific-behavior
708708
///
@@ -760,7 +760,7 @@ impl File {
760760
/// [may change in the future][changes].
761761
///
762762
/// On Windows, locking a file will fail if the file is opened only for append. To lock a file,
763-
/// open it with either `.read(true).append(true)` or `.write(true)`.
763+
/// open it with one of `.read(true)`, `.read(true).append(true)`, or `.write(true)`.
764764
///
765765
/// [changes]: io#platform-specific-behavior
766766
///
@@ -817,7 +817,7 @@ impl File {
817817
/// [may change in the future][changes].
818818
///
819819
/// On Windows, locking a file will fail if the file is opened only for append. To lock a file,
820-
/// open it with either `.read(true).append(true)` or `.write(true)`.
820+
/// open it with one of `.read(true)`, `.read(true).append(true)`, or `.write(true)`.
821821
///
822822
/// [changes]: io#platform-specific-behavior
823823
///
@@ -862,7 +862,7 @@ impl File {
862862
/// [may change in the future][changes].
863863
///
864864
/// On Windows, locking a file will fail if the file is opened only for append. To lock a file,
865-
/// open it with either `.read(true).append(true)` or `.write(true)`.
865+
/// open it with one of `.read(true)`, `.read(true).append(true)`, or `.write(true)`.
866866
///
867867
/// [changes]: io#platform-specific-behavior
868868
///

0 commit comments

Comments
 (0)