Skip to content

Commit

Permalink
sync: typo in impl Semaphore (#2745)
Browse files Browse the repository at this point in the history
  • Loading branch information
blasrodri committed Aug 9, 2020
1 parent 27bfe52 commit e9adac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/batch_semaphore.rs
Expand Up @@ -96,7 +96,7 @@ impl Semaphore {
/// Note that this reserves three bits of flags in the permit counter, but
/// we only actually use one of them. However, the previous semaphore
/// implementation used three bits, so we will continue to reserve them to
/// avoid a breaking change if additional flags need to be aadded in the
/// avoid a breaking change if additional flags need to be added in the
/// future.
pub(crate) const MAX_PERMITS: usize = std::usize::MAX >> 3;
const CLOSED: usize = 1;
Expand Down

0 comments on commit e9adac2

Please sign in to comment.