Wording fixes from review for File.

This commit is contained in:
Alexis Hunt
2018-02-17 08:47:03 -05:00
parent e9c75a889f
commit ec905975b8

View File

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