Fix minor typo in once.rs
This commit is contained in:
parent
4896450e7e
commit
2e4215cb72
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue