Update semaphore.rs

Co-authored-by: Alice Ryhl <[email protected]>
This commit is contained in:
Eliza Weisman
2023-11-05 08:51:22 -08:00
committed by GitHub
co-authored by Alice Ryhl
parent f7a626ff03
commit 67b171ac77
+1 -1
View File
@@ -340,7 +340,7 @@ use std::sync::Arc;
/// completed before continuing.
///
/// The task awaiting the countdown should call [`Semaphore::acquire_many`] to
/// acquire the a number of permits equal to the number of tasks which hold the
/// acquire a number of permits equal to the number of tasks which hold the
/// latch open. The tasks whose completion is awaited by the latch should call
/// [`Semaphore::add_permits`] with a single permit to increment the countdown
/// latch as they complete. For example: