Skip to content

Commit 6e8a013

Browse files
authored
improve wording of thread::park docs
1 parent 1bae661 commit 6e8a013

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

library/std/src/thread/mod.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -891,10 +891,9 @@ pub fn sleep(dur: Duration) {
891891
/// performs the corresponding `Acquire` operation. Calls to `unpark` for the same
892892
/// thread form a [release sequence].
893893
///
894-
/// Notice that being unblocked does not imply any synchronization with someone that
895-
/// unparked this thread, it could also be spurious. For example, it would be a valid,
896-
/// but inefficient, implementation to make both park and unpark return immediately
897-
/// without doing anything.
894+
/// Note that being unblocked does not imply synchronization with a call to `unpark`,
895+
/// the wakeup could also be spurious. For example, a valid, but inefficient,
896+
/// implementation could have `park` and `unpark` return immediately without doing anything.
898897
///
899898
/// # Examples
900899
///

0 commit comments

Comments
 (0)