Skip to content

Commit 1b94610

Browse files
committed
clarify that not all errors are observed
1 parent cccce09 commit 1b94610

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libstd/io/buffered.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,9 @@ impl<R: Seek> Seek for BufReader<R> {
366366
///
367367
/// It is critical to call [`flush`] before `BufWriter<W>` is dropped. Though
368368
/// dropping will attempt to flush the the contents of the buffer, any errors
369-
/// that happen in the process will be ignored. Calling ['flush'] ensures that
370-
/// the buffer is empty and all errors have been observed.
369+
/// that happen in the process of dropping will be ignored. Calling ['flush']
370+
/// ensures that the buffer is empty and thus dropping will not even attempt
371+
/// file operations.
371372
///
372373
/// # Examples
373374
///

0 commit comments

Comments
 (0)