about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-10-06 12:42:52 +0200
committerMara Bos <m-ou.se@m-ou.se>2020-10-06 12:42:52 +0200
commitd1c139360ba7658532b80bb08c26c64c578b0cc7 (patch)
tree187e00a29604565a141f14ed5395dfaf0dd01740
parentf47480b8acb41ff84b9069f689f64af7e3ce900d (diff)
downloadrust-d1c139360ba7658532b80bb08c26c64c578b0cc7.tar.gz
rust-d1c139360ba7658532b80bb08c26c64c578b0cc7.zip
Fix typos in comments.
-rw-r--r--library/std/src/sys/windows/thread_parker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/windows/thread_parker.rs b/library/std/src/sys/windows/thread_parker.rs
index 7697e6bb3be..c49b041c025 100644
--- a/library/std/src/sys/windows/thread_parker.rs
+++ b/library/std/src/sys/windows/thread_parker.rs
@@ -66,7 +66,7 @@ impl Parker {
             c::NtWaitForKeyedEvent(keyed_event_handle(), self.ptr(), 0, ptr::null_mut());
             // Set the state back to EMPTY (from either PARKED or NOTIFIED).
             // Note that we don't just write EMPTY, but use swap() to also
-            // include a acquire-ordered read to synchronize with unpark()'s
+            // include an acquire-ordered read to synchronize with unpark()'s
             // release-ordered write.
             self.state.swap(EMPTY, Acquire);
         }
@@ -86,7 +86,7 @@ impl Parker {
             c::WaitOnAddress(self.ptr(), &PARKED as *const _ as c::LPVOID, 1, dur2timeout(timeout));
             // Set the state back to EMPTY (from either PARKED or NOTIFIED).
             // Note that we don't just write EMPTY, but use swap() to also
-            // include a acquire-ordered read to synchronize with unpark()'s
+            // include an acquire-ordered read to synchronize with unpark()'s
             // release-ordered write.
             if self.state.swap(EMPTY, Acquire) == NOTIFIED {
                 // Actually woken up by unpark().