Skip to content

Commit

Permalink
Fix minor typo in once.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi authored Apr 1, 2021
1 parent 4896450 commit 2e4215c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ fn wait(state_and_queue: &AtomicUsize, mut current_state: usize) {
// If the managing thread happens to signal and unpark us before we
// can park ourselves, the result could be this thread never gets
// unparked. Luckily `park` comes with the guarantee that if it got
// an `unpark` just before on an unparked thread is does not park.
// an `unpark` just before on an unparked thread it does not park.
thread::park();
}
break;
Expand Down

0 comments on commit 2e4215c

Please sign in to comment.