Skip to content

Commit ec90597

Browse files
author
Alexis Hunt
committed
Wording fixes from review for File.
1 parent e9c75a8 commit ec90597

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libstd/fs.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ use time::SystemTime;
8282
/// ```
8383
///
8484
/// Note that, although read and write methods require a `&mut File`, because
85-
/// of the interfaces for [`Read`] and [`Write`], it is still possible to
86-
/// modify a file through a `&File`, either through methods that take `&File`
87-
/// or by retrieving a raw OS filehandle and modifying the file that way.
85+
/// of the interfaces for [`Read`] and [`Write`], the holder of a `&File` can
86+
/// still modify the file, either through methods that take `&File` or by
87+
/// retrieving the underlying OS object and modifying the file that way.
8888
/// Additionally, many operating systems allow concurrent modification of files
89-
/// by different processes. Care should be taken not to assume that holding a
90-
/// `&File` means that the file will not change.
89+
/// by different processes. Avoid assuming that holding a `&File` means that the
90+
/// file will not change.
9191
///
9292
/// [`Seek`]: ../io/trait.Seek.html
9393
/// [`String`]: ../string/struct.String.html

0 commit comments

Comments
 (0)