From d4afbad6e5d84a01d97ff97d3c82d83eb196d160 Mon Sep 17 00:00:00 2001 From: Daniel Sedlak Date: Thu, 6 Apr 2023 14:29:12 +0200 Subject: [PATCH] tokio: fix typos (#5604) --- tokio-util/src/time/delay_queue.rs | 2 +- tokio/src/runtime/metrics/runtime.rs | 2 +- tokio/src/util/once_cell.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tokio-util/src/time/delay_queue.rs b/tokio-util/src/time/delay_queue.rs index ee66adba9..a87103941 100644 --- a/tokio-util/src/time/delay_queue.rs +++ b/tokio-util/src/time/delay_queue.rs @@ -62,7 +62,7 @@ use std::task::{self, Poll, Waker}; /// performance and scalability benefits. /// /// State associated with each entry is stored in a [`slab`]. This amortizes the cost of allocation, -/// and allows reuse of the memory allocated for expired entires. +/// and allows reuse of the memory allocated for expired entries. /// /// Capacity can be checked using [`capacity`] and allocated preemptively by using /// the [`reserve`] method. diff --git a/tokio/src/runtime/metrics/runtime.rs b/tokio/src/runtime/metrics/runtime.rs index fe576bb0c..8e52fead1 100644 --- a/tokio/src/runtime/metrics/runtime.rs +++ b/tokio/src/runtime/metrics/runtime.rs @@ -68,7 +68,7 @@ impl RuntimeMetrics { self.handle.inner.num_blocking_threads() } - /// Returns the number of idle threads, which hve spawned by the runtime + /// Returns the number of idle threads, which have spawned by the runtime /// for `spawn_blocking` calls. /// /// # Examples diff --git a/tokio/src/util/once_cell.rs b/tokio/src/util/once_cell.rs index 1925f0a76..71fc00758 100644 --- a/tokio/src/util/once_cell.rs +++ b/tokio/src/util/once_cell.rs @@ -19,7 +19,7 @@ impl OnceCell { } } - /// Get the value inside this cell, intiailizing it using the provided + /// Get the value inside this cell, initializing it using the provided /// function if necessary. /// /// If the `init` closure panics, then the `OnceCell` is poisoned and all