Fix docstring typo

This commit is contained in:
Caleb Hattingh 2020-06-28 13:26:09 +10:00 committed by GitHub
parent 9bdd2db3a6
commit 8291a22dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ fn seek(&mut self, pos: SeekFrom) -> io::Result<u64> {
/// in memory, like a `Vec<u8>`.
///
/// 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
/// dropping will attempt to flush the contents of the buffer, any errors
/// 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.