Skip to content

Commit f4cd7a5

Browse files
authored
Rollup merge of #114749 - gurry:issue-114722, r=thomcc
Update `mpsc::Sender` doc to reflect that it implements `Sync` Fixes #114722
2 parents da54108 + 0af9dfc commit f4cd7a5

File tree

1 file changed

+2
-3
lines changed
  • library/std/src/sync/mpsc

1 file changed

+2
-3
lines changed

library/std/src/sync/mpsc/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,11 @@ pub struct IntoIter<T> {
303303
rx: Receiver<T>,
304304
}
305305

306-
/// The sending-half of Rust's asynchronous [`channel`] type. This half can only be
307-
/// owned by one thread, but it can be cloned to send to other threads.
306+
/// The sending-half of Rust's asynchronous [`channel`] type.
308307
///
309308
/// Messages can be sent through this channel with [`send`].
310309
///
311-
/// Note: all senders (the original and the clones) need to be dropped for the receiver
310+
/// Note: all senders (the original and its clones) need to be dropped for the receiver
312311
/// to stop blocking to receive messages with [`Receiver::recv`].
313312
///
314313
/// [`send`]: Sender::send

0 commit comments

Comments
 (0)