From 57ba4a4b10ad4ee96b1634529b6b0ed81b099d32 Mon Sep 17 00:00:00 2001 From: Denis Kayshev Date: Sat, 22 Apr 2023 19:52:07 +0300 Subject: [PATCH] sync: fix typo in `Semaphore::MAX_PERMITS` (#5645) --- tokio/src/sync/semaphore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/sync/semaphore.rs b/tokio/src/sync/semaphore.rs index 0aa0d72f543..3343c74ea11 100644 --- a/tokio/src/sync/semaphore.rs +++ b/tokio/src/sync/semaphore.rs @@ -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;