about summary refs log tree commit diff
path: root/library/std/src/thread/scoped.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-09 11:57:16 +0000
committerbors <bors@rust-lang.org>2022-12-09 11:57:16 +0000
commit17b5fdac0f4fe41c2ee381ef395ad1844b8b55b8 (patch)
tree339159a9ae3551297872a9a385bcba8dbbd9f174 /library/std/src/thread/scoped.rs
parent816ec1ba350a1749b61574c81326cb91ed80bb4e (diff)
parent3ba51ac49861cb733661aae9895101a0f4fe5278 (diff)
downloadrust-17b5fdac0f4fe41c2ee381ef395ad1844b8b55b8.tar.gz
rust-17b5fdac0f4fe41c2ee381ef395ad1844b8b55b8.zip
Auto merge of #2719 - RalfJung:rustup, r=RalfJung
Rustup
Diffstat (limited to 'library/std/src/thread/scoped.rs')
-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");
         }