mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
sync: fix typo in Semaphore::MAX_PERMITS (#5645)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user