diff options
| author | Gurinder Singh <frederick.the.fool@gmail.com> | 2023-08-12 09:20:56 +0530 |
|---|---|---|
| committer | Gurinder Singh <frederick.the.fool@gmail.com> | 2023-08-12 09:20:56 +0530 |
| commit | 0af9dfc0a39cfcd679d7ef33afe84a2a41cf5c3c (patch) | |
| tree | 209ecb583fe3ac5337460cd6f7737d9dc2480439 | |
| parent | 4d7a80d48697171ed151c4667b74fc7d784c1836 (diff) | |
| download | rust-0af9dfc0a39cfcd679d7ef33afe84a2a41cf5c3c.tar.gz rust-0af9dfc0a39cfcd679d7ef33afe84a2a41cf5c3c.zip | |
Update Sender documentation for Sync
| -rw-r--r-- | library/std/src/sync/mpsc/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/std/src/sync/mpsc/mod.rs b/library/std/src/sync/mpsc/mod.rs index c00134c8b95..f92bb1a4b1f 100644 --- a/library/std/src/sync/mpsc/mod.rs +++ b/library/std/src/sync/mpsc/mod.rs @@ -303,12 +303,11 @@ pub struct IntoIter<T> { rx: Receiver<T>, } -/// The sending-half of Rust's asynchronous [`channel`] type. This half can only be -/// owned by one thread, but it can be cloned to send to other threads. +/// The sending-half of Rust's asynchronous [`channel`] type. /// /// Messages can be sent through this channel with [`send`]. /// -/// Note: all senders (the original and the clones) need to be dropped for the receiver +/// Note: all senders (the original and its clones) need to be dropped for the receiver /// to stop blocking to receive messages with [`Receiver::recv`]. /// /// [`send`]: Sender::send |
