tokio: fix typos (#5604)

This commit is contained in:
Daniel Sedlak
2023-04-06 14:29:12 +02:00
committed by GitHub
parent b1ca0d8b12
commit d4afbad6e5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ use std::task::{self, Poll, Waker};
/// performance and scalability benefits. /// performance and scalability benefits.
/// ///
/// State associated with each entry is stored in a [`slab`]. This amortizes the cost of allocation, /// 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 /// Capacity can be checked using [`capacity`] and allocated preemptively by using
/// the [`reserve`] method. /// the [`reserve`] method.
+1 -1
View File
@@ -68,7 +68,7 @@ impl RuntimeMetrics {
self.handle.inner.num_blocking_threads() 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. /// for `spawn_blocking` calls.
/// ///
/// # Examples /// # Examples
+1 -1
View File
@@ -19,7 +19,7 @@ impl<T> OnceCell<T> {
} }
} }
/// 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. /// function if necessary.
/// ///
/// If the `init` closure panics, then the `OnceCell` is poisoned and all /// If the `init` closure panics, then the `OnceCell` is poisoned and all