mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-15 00:00:15 +02:00
tokio: fix typos (#5604)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
///
|
||||
/// If the `init` closure panics, then the `OnceCell` is poisoned and all
|
||||
|
||||
Reference in New Issue
Block a user