File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ use crate::sync::WakerSet;
2222/// This channel has a buffer that can hold at most `cap` messages at a time.
2323///
2424/// Senders and receivers can be cloned. When all senders associated with a channel get dropped, it
25- /// becomes closed. Receive operations on a closed and empty channel return `None` instead of
26- /// trying to await a message.
25+ /// becomes closed. Receive operations on a closed and empty channel return [RecvError] instead of
26+ /// trying to await a message when using [Receiver::recv] or `None` when used as a [Stream] .
2727///
2828/// # Panics
2929///
@@ -376,7 +376,7 @@ impl<T> Receiver<T> {
376376 ///
377377 /// If the channel is empty and still has senders, this method
378378 /// will wait until a message is sent into it. Once all senders
379- /// have been dropped it will return `None` .
379+ /// have been dropped it will return [RecvError] .
380380 ///
381381 /// # Examples
382382 ///
You can’t perform that action at this time.
0 commit comments