From e9adac288e3c4279d19d80b77ea61aa0677459b5 Mon Sep 17 00:00:00 2001 From: Blas Rodriguez Irizar Date: Sun, 9 Aug 2020 08:42:04 +0200 Subject: sync: typo in impl Semaphore (#2745) --- tokio/src/sync/batch_semaphore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tokio/src/sync/batch_semaphore.rs') diff --git a/tokio/src/sync/batch_semaphore.rs b/tokio/src/sync/batch_semaphore.rs index 2baf7478..aad6c6f1 100644 --- a/tokio/src/sync/batch_semaphore.rs +++ b/tokio/src/sync/batch_semaphore.rs @@ -96,7 +96,7 @@ impl Semaphore { /// Note that this reserves three bits of flags in the permit counter, but /// we only actually use one of them. However, the previous semaphore /// implementation used three bits, so we will continue to reserve them to - /// avoid a breaking change if additional flags need to be aadded in the + /// avoid a breaking change if additional flags need to be added in the /// future. pub(crate) const MAX_PERMITS: usize = std::usize::MAX >> 3; const CLOSED: usize = 1; -- cgit v1.2.3