Skip to content

Commit 4043c02

Browse files
committed
Auto merge of #31093 - tshepang:misc-doc-improvements, r=steveklabnik
2 parents 289020b + 012d68a commit 4043c02

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
@@ -436,19 +436,19 @@ impl OpenOptions {
436436
/// Note that setting `.write(true).append(true)` has the same effect as
437437
/// setting only `.append(true)`.
438438
///
439-
/// For most filesystems the operating system guarantees all writes are
439+
/// For most filesystems, the operating system guarantees that all writes are
440440
/// atomic: no writes get mangled because another process writes at the same
441441
/// time.
442442
///
443443
/// One maybe obvious note when using append-mode: make sure that all data
444-
/// that belongs together, is written the the file in one operation. This
444+
/// that belongs together is written to the file in one operation. This
445445
/// can be done by concatenating strings before passing them to `write()`,
446-
/// or using a buffered writer (with a more than adequately sized buffer)
446+
/// or using a buffered writer (with a buffer of adequate size),
447447
/// and calling `flush()` when the message is complete.
448448
///
449449
/// If a file is opened with both read and append access, beware that after
450-
/// opening and after every write the position for reading may be set at the
451-
/// end of the file. So before writing save the current position (using
450+
/// opening, and after every write, the position for reading may be set at the
451+
/// end of the file. So, before writing, save the current position (using
452452
/// `seek(SeekFrom::Current(0))`, and restore it before the next read.
453453
///
454454
/// # Examples

0 commit comments

Comments
 (0)