about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-04-29 17:24:48 +0200
committerGitHub <noreply@github.com>2025-04-29 17:24:48 +0200
commit76992ce41e49d03bda37de4308fa6324111fb3b4 (patch)
treee6ed9fdac690f28d5c63d1f83a78c6762bb220a6 /src/tools
parentef5834968e41aa6c1ef479f8acc1197dec526731 (diff)
downloadrust-76992ce41e49d03bda37de4308fa6324111fb3b4.tar.gz
rust-76992ce41e49d03bda37de4308fa6324111fb3b4.zip
fix comment typos
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/miri/src/concurrency/thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/src/concurrency/thread.rs b/src/tools/miri/src/concurrency/thread.rs
index d640e7777e5..f8ff47e7113 100644
--- a/src/tools/miri/src/concurrency/thread.rs
+++ b/src/tools/miri/src/concurrency/thread.rs
@@ -728,7 +728,7 @@ impl<'tcx> ThreadManager<'tcx> {
         }
         // No callbacks immediately scheduled, pick a regular thread to execute.
         // The active thread blocked or yielded. So we go search for another enabled thread.
-        // We build the list of threads by starting with the thread after the current one, followed by
+        // We build the list of threads by starting with the threads after the current one, followed by
         // the threads before the current one and then the current thread itself (i.e., this iterator acts
         // like `threads.rotate_left(self.active_thread.index() + 1)`. This ensures that if we pick the first
         // eligible thread, we do regular round-robin scheduling, and all threads get a chance to take a step.
@@ -752,7 +752,7 @@ impl<'tcx> ThreadManager<'tcx> {
                 self.active_thread = id;
             }
         }
-        //This completes the `yield`, if any was requested.
+        // This completes the `yield`, if any was requested.
         self.yield_active_thread = false;
 
         if self.threads[self.active_thread].state.is_enabled() {