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 aschweig committed Oct 9, 2023
1 parent 326fa53 commit e8950ce
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 e8950ce

Please sign in to comment.