about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-01-24 20:13:14 +0000
committerbors <bors@rust-lang.org>2016-01-24 20:13:14 +0000
commit4043c0247ebf5139f52a92b1501e4cdcbd5f1bd7 (patch)
tree74a1de3a45f035d7a80f4840a6380a1700bf331d /src/libstd
parent289020b21c95a4c8f8578e51cdea79a2182515e6 (diff)
parent012d68a92e83c68e53c8c6015bfa78aa335ac332 (diff)
downloadrust-4043c0247ebf5139f52a92b1501e4cdcbd5f1bd7.tar.gz
rust-4043c0247ebf5139f52a92b1501e4cdcbd5f1bd7.zip
Auto merge of #31093 - tshepang:misc-doc-improvements, r=steveklabnik
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/fs.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs
index 187a1797dac..e40a3d06f77 100644
--- a/src/libstd/fs.rs
+++ b/src/libstd/fs.rs
@@ -436,19 +436,19 @@ impl OpenOptions {
     /// Note that setting `.write(true).append(true)` has the same effect as
     /// setting only `.append(true)`.
     ///
-    /// For most filesystems the operating system guarantees all writes are
+    /// For most filesystems, the operating system guarantees that all writes are
     /// atomic: no writes get mangled because another process writes at the same
     /// time.
     ///
     /// One maybe obvious note when using append-mode: make sure that all data
-    /// that belongs together, is written the the file in one operation. This
+    /// that belongs together is written to the file in one operation. This
     /// can be done by concatenating strings before passing them to `write()`,
-    /// or using a buffered writer (with a more than adequately sized buffer)
+    /// or using a buffered writer (with a buffer of adequate size),
     /// and calling `flush()` when the message is complete.
     ///
     /// If a file is opened with both read and append access, beware that after
-    /// opening and after every write the position for reading may be set at the
-    /// end of the file. So before writing save the current position (using
+    /// opening, and after every write, the position for reading may be set at the
+    /// end of the file. So, before writing, save the current position (using
     /// `seek(SeekFrom::Current(0))`, and restore it before the next read.
     ///
     /// # Examples