We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9580a9 + 949ff90 commit 6a6623cCopy full SHA for 6a6623c
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