io: clarify the behavior of AsyncWriteExt::shutdown() (#7908)

This commit is contained in:
Zen
2026-02-14 11:42:24 -08:00
committed by GitHub
parent 9e7e1ef7ad
commit a25d95a8c4
+2 -2
View File
@@ -1294,8 +1294,8 @@ cfg_io_util! {
/// async fn shutdown(&mut self) -> io::Result<()>; /// async fn shutdown(&mut self) -> io::Result<()>;
/// ``` /// ```
/// ///
/// Similar to [`flush`], all intermediately buffered is written to the /// Similar to [`flush`], all intermediately buffered content is written to
/// underlying stream. Once the operation completes, the caller should /// the underlying stream. Once the operation completes, the caller should
/// no longer attempt to write to the stream. For example, the /// no longer attempt to write to the stream. For example, the
/// `TcpStream` implementation will issue a `shutdown(Write)` sys call. /// `TcpStream` implementation will issue a `shutdown(Write)` sys call.
/// ///