mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
sync: typo in impl Semaphore (#2745)
This commit is contained in:
parent
27bfe52bba
commit
e9adac288e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user