sync: fix typo in Semaphore::MAX_PERMITS (#5645)

This commit is contained in:
Denis Kayshev
2023-04-22 18:52:07 +02:00
committed by GitHub
parent 5e6c6bdafd
commit 57ba4a4b10
+1 -1
View File
@@ -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;