diff options
| author | Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> | 2021-04-01 00:52:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-01 00:52:02 -0400 |
| commit | 2e4215cb72a256b4843323ea5c9f1552e2c13a43 (patch) | |
| tree | e487b16fb8b34e35eebb417d58de93d8942c8cec | |
| parent | 4896450e7e0a522486b4d3a8d360ac4e1d2072a0 (diff) | |
| download | rust-2e4215cb72a256b4843323ea5c9f1552e2c13a43.tar.gz rust-2e4215cb72a256b4843323ea5c9f1552e2c13a43.zip | |
Fix minor typo in once.rs
| -rw-r--r-- | library/std/src/sync/once.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/once.rs b/library/std/src/sync/once.rs index 2e5f843fc43..a24a5cb2ae3 100644 --- a/library/std/src/sync/once.rs +++ b/library/std/src/sync/once.rs @@ -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; |
