Skip to content

Commit 76cd8f0

Browse files
committed
improve wording
1 parent 7b6ad7a commit 76cd8f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libstd/thread/mod.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,10 @@ const NOTIFIED: usize = 2;
806806
/// In other words, each [`Thread`] acts a bit like a spinlock that can be
807807
/// locked and unlocked using `park` and `unpark`.
808808
///
809-
/// Notice that it would be a valid (but inefficient) implementation to make both [`park`] and
810-
/// [`unpark`] NOPs that return immediately. Being unblocked does not imply
811-
/// any synchronization with someone that unparked this thread, it could also be spurious.
809+
/// Notice that being unblocked does not imply any synchronization with someone
810+
/// that unparked this thread, it could also be spurious.
811+
/// For example, it would be a valid, but inefficient, implementation to make both [`park`] and
812+
/// [`unpark`] return immediately without doing anything.
812813
///
813814
/// The API is typically used by acquiring a handle to the current thread,
814815
/// placing that handle in a shared data structure so that other threads can

0 commit comments

Comments
 (0)