about summary refs log tree commit diff
path: root/src/libstd/thread/mod.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-01-19 15:49:22 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-01-20 08:34:30 -0800
commit437d2b5e2840b220772c8d58a925c2b232bd0c2e (patch)
tree903af1f0ef2eb457b717e1b15461c72c637ec773 /src/libstd/thread/mod.rs
parenta52da95ced667fe8ff490f73c0b041a4f926c041 (diff)
parent20fd6cc98aa3497674d1285d5460f1e4ea85cdd4 (diff)
downloadrust-437d2b5e2840b220772c8d58a925c2b232bd0c2e.tar.gz
rust-437d2b5e2840b220772c8d58a925c2b232bd0c2e.zip
Rollup merge of #38761 - frewsxcv:thread-sleep-formatting, r=alexcrichton
Add 'platform-specific' section to `sleep_ms` to match `sleep`.

None
Diffstat (limited to 'src/libstd/thread/mod.rs')
-rw-r--r--src/libstd/thread/mod.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index a2039db0e40..07a9b4bed99 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -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
 ///