Skip to content

Commit 20fd6cc

Browse files
committed
Add 'platform-specific' section to sleep_ms to match sleep.
1 parent 7b659cf commit 20fd6cc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/libstd/thread/mod.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,12 @@ pub fn panicking() -> bool {
491491
/// Puts the current thread to sleep for the specified amount of time.
492492
///
493493
/// The thread may sleep longer than the duration specified due to scheduling
494-
/// specifics or platform-dependent functionality. Note that on unix platforms
495-
/// this function will not return early due to a signal being received or a
496-
/// spurious wakeup.
494+
/// specifics or platform-dependent functionality.
495+
///
496+
/// # Platform behavior
497+
///
498+
/// On Unix platforms this function will not return early due to a
499+
/// signal being received or a spurious wakeup.
497500
///
498501
/// # Examples
499502
///

0 commit comments

Comments
 (0)