Skip to content

Commit 593dbf5

Browse files
authored
docs: fix typos (#6118)
1 parent d8a4a5f commit 593dbf5

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

tokio-util/src/io/stream_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ where
302302
}
303303

304304
// The code below is a manual expansion of the code that pin-project-lite would
305-
// generate. This is done because pin-project-lite fails by hitting the recusion
305+
// generate. This is done because pin-project-lite fails by hitting the recursion
306306
// limit on this struct. (Every line of documentation is handled recursively by
307307
// the macro.)
308308

tokio/src/io/interest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl Interest {
239239

240240
if self.is_error() {
241241
// There is no error interest in mio, because error events are always reported.
242-
// But mio interests cannot be empty and an interest is needed just for the registeration.
242+
// But mio interests cannot be empty and an interest is needed just for the registration.
243243
//
244244
// read readiness is filtered out in `Interest::mask` or `Ready::from_interest` if
245245
// the read interest was not specified by the user.

tokio/src/runtime/scheduler/multi_thread/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl<T> Local<T> {
179179
/// Pushes a task to the back of the local queue, if there is not enough
180180
/// capacity in the queue, this triggers the overflow operation.
181181
///
182-
/// When the queue overflows, half of the curent contents of the queue is
182+
/// When the queue overflows, half of the current contents of the queue is
183183
/// moved to the given Injection queue. This frees up capacity for more
184184
/// tasks to be pushed into the local queue.
185185
pub(crate) fn push_back_or_overflow<O: Overflow<T>>(

tokio/src/runtime/scheduler/multi_thread/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ impl Core {
795795
// safety: passing in the correct `inject::Synced`.
796796
let mut tasks = unsafe { worker.inject().pop_n(&mut synced.inject, n) };
797797

798-
// Pop the first task to return immedietly
798+
// Pop the first task to return immediately
799799
let ret = tasks.next();
800800

801801
// Push the rest of the on the run queue

tokio/src/runtime/scheduler/multi_thread_alt/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl<T> Local<T> {
163163
/// Pushes a task to the back of the local queue, if there is not enough
164164
/// capacity in the queue, this triggers the overflow operation.
165165
///
166-
/// When the queue overflows, half of the curent contents of the queue is
166+
/// When the queue overflows, half of the current contents of the queue is
167167
/// moved to the given Injection queue. This frees up capacity for more
168168
/// tasks to be pushed into the local queue.
169169
pub(crate) fn push_back_or_overflow<O: Overflow<T>>(

tokio/src/runtime/scheduler/multi_thread_alt/worker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl Worker {
563563
let maybe_task = cx.shared().next_remote_task_synced(&mut synced);
564564
(maybe_task, core)
565565
} else {
566-
// block the thread to wait for a core to be assinged to us
566+
// block the thread to wait for a core to be assigned to us
567567
self.wait_for_core(cx, synced)?
568568
}
569569
}
@@ -801,7 +801,7 @@ impl Worker {
801801
// safety: passing in the correct `inject::Synced`.
802802
let mut tasks = unsafe { cx.shared().inject.pop_n(&mut synced.inject, n) };
803803

804-
// Pop the first task to return immedietly
804+
// Pop the first task to return immediately
805805
let ret = tasks.next();
806806

807807
// Push the rest of the on the run queue

tokio/tests/time_interval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ async fn reset() {
205205
}
206206

207207
#[tokio::test(start_paused = true)]
208-
async fn reset_immediatelly() {
208+
async fn reset_immediately() {
209209
let start = Instant::now();
210210

211211
// This is necessary because the timer is only so granular, and in order for

0 commit comments

Comments
 (0)