From f7a626ff03c0cf1f45af9e9365fd387112963d73 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Sun, 5 Nov 2023 08:50:39 -0800 Subject: [PATCH] Update semaphore.rs Co-authored-by: Alice Ryhl --- 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 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