Skip to content

Commit

Permalink
clarify that not all errors are observed
Browse files Browse the repository at this point in the history
  • Loading branch information
johnterickson committed Aug 31, 2019
1 parent cccce09 commit 1b94610
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libstd/io/buffered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,9 @@ impl<R: Seek> Seek for BufReader<R> {
///
/// It is critical to call [`flush`] before `BufWriter<W>` is dropped. Though
/// dropping will attempt to flush the the contents of the buffer, any errors
/// that happen in the process will be ignored. Calling ['flush'] ensures that
/// the buffer is empty and all errors have been observed.
/// that happen in the process of dropping will be ignored. Calling ['flush']
/// ensures that the buffer is empty and thus dropping will not even attempt
/// file operations.
///
/// # Examples
///
Expand Down

0 comments on commit 1b94610

Please sign in to comment.