Skip to content

Commit d1c1393

Browse files
committed
Fix typos in comments.
1 parent f47480b commit d1c1393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/sys/windows/thread_parker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl Parker {
6666
c::NtWaitForKeyedEvent(keyed_event_handle(), self.ptr(), 0, ptr::null_mut());
6767
// Set the state back to EMPTY (from either PARKED or NOTIFIED).
6868
// Note that we don't just write EMPTY, but use swap() to also
69-
// include a acquire-ordered read to synchronize with unpark()'s
69+
// include an acquire-ordered read to synchronize with unpark()'s
7070
// release-ordered write.
7171
self.state.swap(EMPTY, Acquire);
7272
}
@@ -86,7 +86,7 @@ impl Parker {
8686
c::WaitOnAddress(self.ptr(), &PARKED as *const _ as c::LPVOID, 1, dur2timeout(timeout));
8787
// Set the state back to EMPTY (from either PARKED or NOTIFIED).
8888
// Note that we don't just write EMPTY, but use swap() to also
89-
// include a acquire-ordered read to synchronize with unpark()'s
89+
// include an acquire-ordered read to synchronize with unpark()'s
9090
// release-ordered write.
9191
if self.state.swap(EMPTY, Acquire) == NOTIFIED {
9292
// Actually woken up by unpark().

0 commit comments

Comments
 (0)