]> git.feebdaed.xyz Git - 0xmirror/tokio.git/commitdiff
net: clarify the drop behavior of `unix::OwnedWriteHalf` (#7742)
authorMohamed Macow <58916277+darth-raijin@users.noreply.github.com>
Sun, 23 Nov 2025 09:18:24 +0000 (10:18 +0100)
committerGitHub <noreply@github.com>
Sun, 23 Nov 2025 09:18:24 +0000 (17:18 +0800)
tokio/src/net/unix/stream.rs

index 26fe9e406d788ea76f61b873ff75e1b1a020d2f8..2391d54b46e42d21ff4c38a771f2298a5ce43d19 100644 (file)
@@ -974,7 +974,7 @@ impl UnixStream {
     /// Unlike [`split`], the owned halves can be moved to separate tasks, however
     /// this comes at the cost of a heap allocation.
     ///
-    /// **Note:** Dropping the write half will shut down the write half of the
+    /// **Note:** Dropping the write half will only shut down the write half of the
     /// stream. This is equivalent to calling [`shutdown()`] on the `UnixStream`.
     ///
     /// [`split`]: Self::split()