sync: add Semaphore::MAX_PERMITS (#5144)

This commit is contained in:
Vitaly Shukela
2022-10-30 21:19:37 +00:00
committed by GitHub
parent fe1843c0e0
commit d1a8ec6495
3 changed files with 36 additions and 6 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ impl PollSemaphore {
/// Adds `n` new permits to the semaphore.
///
/// The maximum number of permits is `usize::MAX >> 3`, and this function
/// The maximum number of permits is [`Semaphore::MAX_PERMITS`], and this function
/// will panic if the limit is exceeded.
///
/// This is equivalent to the [`Semaphore::add_permits`] method on the