Rollup merge of #38761 - frewsxcv:thread-sleep-formatting, r=alexcrichton

Add 'platform-specific' section to `sleep_ms` to match `sleep`.

None
This commit is contained in:
Alex Crichton 2017-01-19 15:49:22 -08:00
commit 437d2b5e28

View File

@ -491,9 +491,12 @@ pub fn panicking() -> bool {
/// Puts the current thread to sleep for the specified amount of time. /// Puts the current thread to sleep for the specified amount of time.
/// ///
/// The thread may sleep longer than the duration specified due to scheduling /// The thread may sleep longer than the duration specified due to scheduling
/// specifics or platform-dependent functionality. Note that on unix platforms /// specifics or platform-dependent functionality.
/// this function will not return early due to a signal being received or a ///
/// spurious wakeup. /// # Platform behavior
///
/// On Unix platforms this function will not return early due to a
/// signal being received or a spurious wakeup.
/// ///
/// # Examples /// # Examples
/// ///