]> git.lizzy.rs Git - rust.git/commitdiff
Add 'platform-specific' section to `sleep_ms` to match `sleep`.
authorCorey Farwell <coreyf@rwell.org>
Sun, 1 Jan 2017 19:53:18 +0000 (11:53 -0800)
committerCorey Farwell <coreyf@rwell.org>
Sun, 1 Jan 2017 19:53:18 +0000 (11:53 -0800)
src/libstd/thread/mod.rs

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