]> git.feebdaed.xyz Git - 0xmirror/tokio.git/commitdiff
chore: fix some minor typos in the comments (#7442)
authorshangchenglumetro <shuang.cui@live.com>
Fri, 4 Jul 2025 09:29:27 +0000 (17:29 +0800)
committerGitHub <noreply@github.com>
Fri, 4 Jul 2025 09:29:27 +0000 (11:29 +0200)
Signed-off-by: shangchenglumetro <shuang.cui@live.com>
tokio-util/tests/task_join_map.rs
tokio/src/process/mod.rs

index 79b47154c7cda76d7e206cf0ae46f92a1317ba3a..c86d76dafa0574ff2e2b9ef842922293af1d3a82 100644 (file)
@@ -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() => {},
     }
index eba17cff3a789ebc68f90c3882874f86cf9ab66e..bff20fcd20c216d9591567618b108f7824a573ee 100644 (file)
@@ -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.