We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd29747 commit 949ff90Copy full SHA for 949ff90
src/io/buf_writer.rs
@@ -74,7 +74,8 @@ pin_project! {
74
///
75
/// By wrapping the stream with a `BufWriter`, these ten writes are all grouped
76
/// together by the buffer, and will all be written out in one system call when
77
- /// the `stream` is dropped.
+ /// `stream.flush()` completes. (As mentioned above, dropping a `BufWriter`
78
+ /// does not flush its buffers, so a `flush` call is essential.)
79
80
/// [`Write`]: trait.Write.html
81
/// [`TcpStream::write`]: ../net/struct.TcpStream.html#method.write
0 commit comments