Skip to content

Commit 76992ce

Browse files
authored
fix comment typos
1 parent ef58349 commit 76992ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/miri/src/concurrency/thread.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ impl<'tcx> ThreadManager<'tcx> {
728728
}
729729
// No callbacks immediately scheduled, pick a regular thread to execute.
730730
// The active thread blocked or yielded. So we go search for another enabled thread.
731-
// We build the list of threads by starting with the thread after the current one, followed by
731+
// We build the list of threads by starting with the threads after the current one, followed by
732732
// the threads before the current one and then the current thread itself (i.e., this iterator acts
733733
// like `threads.rotate_left(self.active_thread.index() + 1)`. This ensures that if we pick the first
734734
// 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> {
752752
self.active_thread = id;
753753
}
754754
}
755-
//This completes the `yield`, if any was requested.
755+
// This completes the `yield`, if any was requested.
756756
self.yield_active_thread = false;
757757

758758
if self.threads[self.active_thread].state.is_enabled() {

0 commit comments

Comments
 (0)