diff --git a/tokio/src/sync/semaphore.rs b/tokio/src/sync/semaphore.rs index 027677e2e..ef21920f0 100644 --- a/tokio/src/sync/semaphore.rs +++ b/tokio/src/sync/semaphore.rs @@ -342,7 +342,7 @@ use std::sync::Arc; /// 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 /// latch open. The tasks whose completion is awaited by the latch should call -/// [`Semaphore::add_permit`] with a single permit to increment the countdown +/// [`Semaphore::add_permits`] with a single permit to increment the countdown /// latch as they complete. For example: /// /// ```rust