about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-17 08:39:21 +0200
committerGitHub <noreply@github.com>2023-08-17 08:39:21 +0200
commitf4cd7a537b2105be782096d80519ffafdcf4702d (patch)
tree852739f607d27260b9d98ec0e4434f4301666cb3
parentda541088ef61320770dba8a32c7e365d7c0f6e0f (diff)
parent0af9dfc0a39cfcd679d7ef33afe84a2a41cf5c3c (diff)
downloadrust-f4cd7a537b2105be782096d80519ffafdcf4702d.tar.gz
rust-f4cd7a537b2105be782096d80519ffafdcf4702d.zip
Rollup merge of #114749 - gurry:issue-114722, r=thomcc
Update `mpsc::Sender` doc to reflect that it implements `Sync`

Fixes #114722
-rw-r--r--library/std/src/sync/mpsc/mod.rs5
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