Skip to content

Commit

Permalink
Fix doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Schweiger authored and Aaron Schweiger committed Oct 8, 2023
1 parent bf44fcb commit 8960f68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tokio/src/sync/mpsc/bounded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl<T> Receiver<T> {
/// still outstanding [`Permits`] from before it was closed, the channel is
/// not considered closed by `recv_many` until the permits are released.
///
/// For non-zero values `limit`, this method will never return `0` unless
/// For non-zero values of `limit`, this method will never return `0` unless
/// the channel has been closed and there are no remaining messages in the
/// channel's queue. This indicates that no further values can ever
/// be received from this `Receiver`. The channel is closed when all senders
Expand Down
8 changes: 4 additions & 4 deletions tokio/src/sync/mpsc/unbounded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ impl<T> UnboundedReceiver<T> {
/// the function returns immediately with `0`.
/// The return value is the number of values added to `buffer`.
///
/// If there are no messages in the channel's queue, but the channel has
/// not yet been closed, this method will sleep until a message is sent or
/// the channel is closed.
/// For `limit > 0`, if there are no messages in the channel's
/// queue, but the channel has not yet been closed, this
/// method will sleep until a message is sent or the channel is closed.
///
/// For `limit > 0`, this method will never return `0` unless
/// For non-zero values of `limit`, this method will never return `0` unless
/// the channel has been closed and there are no remaining messages
/// in the channel's queue. This indicates that no further values can ever
/// be received from this `Receiver`. The channel is closed when all senders
Expand Down

0 comments on commit 8960f68

Please sign in to comment.