about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-11-22 20:32:38 +0800
committerGitHub <noreply@github.com>2024-11-22 20:32:38 +0800
commit874cf85674abe00db6c6baf2cd541e18897856eb (patch)
treeba9c344b24566203f4458c6438c811782721066e /library/std/src
parentbbc4cbe3e239f2e03a6890d87cef23c919bfe046 (diff)
parentd0384f3ba5caa6871ce45b4ca90743d546fa698c (diff)
downloadrust-874cf85674abe00db6c6baf2cd541e18897856eb.tar.gz
rust-874cf85674abe00db6c6baf2cd541e18897856eb.zip
Rollup merge of #133337 - ColinFinck:thread-scoped-fix-typo, r=joboet
Fix typo in `std::thread::Scope::spawn` documentation.

Just a simple fix for a typo that caught my attention.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/thread/scoped.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs
index b2305b1eda7..a14446b3515 100644
--- a/library/std/src/thread/scoped.rs
+++ b/library/std/src/thread/scoped.rs
@@ -176,7 +176,7 @@ impl<'scope, 'env> Scope<'scope, 'env> {
     /// thread. If the spawned thread panics, [`join`] will return an [`Err`] containing
     /// the panic payload.
     ///
-    /// If the join handle is dropped, the spawned thread will implicitly joined at the
+    /// If the join handle is dropped, the spawned thread will be implicitly joined at the
     /// end of the scope. In that case, if the spawned thread panics, [`scope`] will
     /// panic after all threads are joined.
     ///