summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/batch_semaphore.rs
diff options
context:
space:
mode:
authorBlas Rodriguez Irizar <rodrigblas@gmail.com>2020-08-09 08:42:04 +0200
committerGitHub <noreply@github.com>2020-08-09 08:42:04 +0200
commite9adac288e3c4279d19d80b77ea61aa0677459b5 (patch)
tree75e9b47a7b2d5d88e2cf119257aab6eb782447ae /tokio/src/sync/batch_semaphore.rs
parent27bfe52bba06283df3e9481b89a903390ee70369 (diff)
sync: typo in impl Semaphore (#2745)
Diffstat (limited to 'tokio/src/sync/batch_semaphore.rs')
-rw-r--r--tokio/src/sync/batch_semaphore.rs2
1 files changed, 1 insertions, 1 deletions
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;