diff options
| author | Marco Conte <marco@enhance.com> | 2019-10-23 18:11:41 +0100 |
|---|---|---|
| committer | Marco Conte <marco@enhance.com> | 2019-10-31 10:48:33 +0000 |
| commit | 5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6 (patch) | |
| tree | d214bedeadef7820fad66512365ebe98af927a88 /src/libstd | |
| parent | 900c13e7f465e53a3bae7ff91a1090d6faf29416 (diff) | |
| download | rust-5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6.tar.gz rust-5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6.zip | |
rephrase sentence regarding data loss when using BufReader::into_inner
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/buffered.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index 7870c56b476..ad567c97c2c 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -24,8 +24,9 @@ use crate::memchr; /// /// When the `BufReader<R>` is dropped, the contents of its buffer will be /// discarded. Creating multiple instances of a `BufReader<R>` on the same -/// stream can cause data loss, as well as reading from the underlying reader -/// after unwrapping the `BufReader<R>` instance with `BufReader<R>::into_inner()`. +/// stream can cause data loss. Reading from the underlying reader after +/// unwrapping the `BufReader<R>` with `BufReader::into_inner` can also cause +/// data loss. /// /// [`Read`]: ../../std/io/trait.Read.html /// [`TcpStream::read`]: ../../std/net/struct.TcpStream.html#method.read |
