Skip to content

Commit

Permalink
sync: fix typo in Semaphore::MAX_PERMITS (#5645)
Browse files Browse the repository at this point in the history
  • Loading branch information
topenkoff authored Apr 22, 2023
1 parent 5e6c6bd commit 57ba4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn bounds() {
}

impl Semaphore {
/// The maximum number of permits which a semaphore can hold. It is `usize::MAX >>> 3`.
/// The maximum number of permits which a semaphore can hold. It is `usize::MAX >> 3`.
///
/// Exceeding this limit typically results in a panic.
pub const MAX_PERMITS: usize = super::batch_semaphore::Semaphore::MAX_PERMITS;
Expand Down

0 comments on commit 57ba4a4

Please sign in to comment.