Skip to content

Commit

Permalink
improve wording of thread::park docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev authored Jan 1, 2023
1 parent 1bae661 commit 6e8a013
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/std/src/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -891,10 +891,9 @@ pub fn sleep(dur: Duration) {
/// performs the corresponding `Acquire` operation. Calls to `unpark` for the same
/// thread form a [release sequence].
///
/// Notice that being unblocked does not imply any synchronization with someone that
/// unparked this thread, it could also be spurious. For example, it would be a valid,
/// but inefficient, implementation to make both park and unpark return immediately
/// without doing anything.
/// Note that being unblocked does not imply synchronization with a call to `unpark`,
/// the wakeup could also be spurious. For example, a valid, but inefficient,
/// implementation could have `park` and `unpark` return immediately without doing anything.
///
/// # Examples
///
Expand Down

0 comments on commit 6e8a013

Please # to comment.