From a1ee3ef218894f2441b5719812ab218ae0539c8d Mon Sep 17 00:00:00 2001 From: shangchenglumetro Date: Fri, 4 Jul 2025 17:29:27 +0800 Subject: [PATCH] chore: fix some minor typos in the comments (#7442) Signed-off-by: shangchenglumetro --- tokio-util/tests/task_join_map.rs | 2 +- tokio/src/process/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-util/tests/task_join_map.rs b/tokio-util/tests/task_join_map.rs index 79b47154c..c86d76daf 100644 --- a/tokio-util/tests/task_join_map.rs +++ b/tokio-util/tests/task_join_map.rs @@ -330,7 +330,7 @@ async fn duplicate_keys2() { biased; res = map.join_next() => match res { Some((_key, res)) => panic!("Task {res:?} exited."), - None => panic!("Phantom task completeion."), + None => panic!("Phantom task completion."), }, () = tokio::task::yield_now() => {}, } diff --git a/tokio/src/process/mod.rs b/tokio/src/process/mod.rs index eba17cff3..bff20fcd2 100644 --- a/tokio/src/process/mod.rs +++ b/tokio/src/process/mod.rs @@ -943,7 +943,7 @@ impl Command { /// Small indirection for the spawn implementations. /// /// This is introduced for [`Self::spawn`] and [`Self::spawn_with`] to use: - /// [`Self::spawn`] cannot depend directly on on [`Self::spawn_with`] since + /// [`Self::spawn`] cannot depend directly on [`Self::spawn_with`] since /// it is behind `tokio_unstable`. It also serves as a way to reduce /// monomorphization bloat by taking in an already-spawned child process /// instead of a command and custom spawn function.