@@ -436,19 +436,19 @@ impl OpenOptions {
436
436
/// Note that setting `.write(true).append(true)` has the same effect as
437
437
/// setting only `.append(true)`.
438
438
///
439
- /// For most filesystems the operating system guarantees all writes are
439
+ /// For most filesystems, the operating system guarantees that all writes are
440
440
/// atomic: no writes get mangled because another process writes at the same
441
441
/// time.
442
442
///
443
443
/// 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
445
445
/// 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),
447
447
/// and calling `flush()` when the message is complete.
448
448
///
449
449
/// 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
452
452
/// `seek(SeekFrom::Current(0))`, and restore it before the next read.
453
453
///
454
454
/// # Examples
0 commit comments