From 340d4e5238f7feaee63978c541559e0a127733bf Mon Sep 17 00:00:00 2001 From: Daniel Sedlak Date: Sun, 19 Nov 2023 14:01:29 +0100 Subject: [PATCH] runtime: fix comment typos (#6143) --- tokio/src/runtime/scheduler/multi_thread/worker.rs | 2 +- tokio/src/task/local.rs | 2 +- tokio/tests/rt_handle_block_on.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tokio/src/runtime/scheduler/multi_thread/worker.rs b/tokio/src/runtime/scheduler/multi_thread/worker.rs index 4a09f4a74..dbd888670 100644 --- a/tokio/src/runtime/scheduler/multi_thread/worker.rs +++ b/tokio/src/runtime/scheduler/multi_thread/worker.rs @@ -789,7 +789,7 @@ impl Core { ); // Take at least one task since the first task is returned directly - // and nto pushed onto the local queue. + // and not pushed onto the local queue. let n = usize::max(1, n); let mut synced = worker.handle.shared.synced.lock(); diff --git a/tokio/src/task/local.rs b/tokio/src/task/local.rs index 3e5c93abb..fb49d1f27 100644 --- a/tokio/src/task/local.rs +++ b/tokio/src/task/local.rs @@ -1169,7 +1169,7 @@ mod tests { // Does a `LocalSet` running on a current-thread runtime...basically work? // // This duplicates a test in `tests/task_local_set.rs`, but because this is - // a lib test, it wil run under Miri, so this is necessary to catch stacked + // a lib test, it will run under Miri, so this is necessary to catch stacked // borrows violations in the `LocalSet` implementation. #[test] fn local_current_thread_scheduler() { diff --git a/tokio/tests/rt_handle_block_on.rs b/tokio/tests/rt_handle_block_on.rs index 54b9002c0..95365ec52 100644 --- a/tokio/tests/rt_handle_block_on.rs +++ b/tokio/tests/rt_handle_block_on.rs @@ -3,7 +3,7 @@ // All io tests that deal with shutdown is currently ignored because there are known bugs in with // shutting down the io driver while concurrently registering new resources. See -// https://github.com/tokio-rs/tokio/pull/3569#pullrequestreview-612703467 fo more details. +// https://github.com/tokio-rs/tokio/pull/3569#pullrequestreview-612703467 for more details. // // When this has been fixed we want to re-enable these tests.