summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorIbraheem Ahmed <ibraheem@ibraheem.ca>2023-01-01 14:34:22 -0500
committerGitHub <noreply@github.com>2023-01-01 14:34:22 -0500
commit6e8a0136f1d5d9e7e2f7d6bf1f599975f8c0c4c2 (patch)
tree6c502a611a7439e0d4b23ad74bc48bfcf5ab9872 /library/std/src
parent1bae661dbc0b9fd3397e0df00b176bf13f346cff (diff)
downloadrust-6e8a0136f1d5d9e7e2f7d6bf1f599975f8c0c4c2.tar.gz
rust-6e8a0136f1d5d9e7e2f7d6bf1f599975f8c0c4c2.zip
improve wording of `thread::park` docs
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/thread/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index afa4e2fb168..07662e90c52 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -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
 ///