summary refs log tree commit diff
path: root/library/std/src/thread
diff options
context:
space:
mode:
authorRageking8 <tomleetyt@gmail.com>2022-12-05 16:42:36 +0800
committerRageking8 <tomleetyt@gmail.com>2022-12-05 16:42:36 +0800
commit58110572fb23e0ad1944bdf3d8cdb3f84cb91aa2 (patch)
tree0acd9bc67dd30cce5bfded6a32b2663f10f6bad1 /library/std/src/thread
parentb9341bfdb1dec09b49b1e7d01d7c4db0e2436737 (diff)
downloadrust-58110572fb23e0ad1944bdf3d8cdb3f84cb91aa2.tar.gz
rust-58110572fb23e0ad1944bdf3d8cdb3f84cb91aa2.zip
fix dupe word typos
Diffstat (limited to 'library/std/src/thread')
-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 e6dbf35bd02..ada69aa8269 100644
--- a/library/std/src/thread/scoped.rs
+++ b/library/std/src/thread/scoped.rs
@@ -46,7 +46,7 @@ impl ScopeData {
         // We check for 'overflow' with usize::MAX / 2, to make sure there's no
         // chance it overflows to 0, which would result in unsoundness.
         if self.num_running_threads.fetch_add(1, Ordering::Relaxed) > usize::MAX / 2 {
-            // This can only reasonably happen by mem::forget()'ing many many ScopedJoinHandles.
+            // This can only reasonably happen by mem::forget()'ing a lot of ScopedJoinHandles.
             self.decrement_num_running_threads(false);
             panic!("too many running threads in thread scope");
         }