diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-01-19 15:49:22 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-20 08:34:30 -0800 |
| commit | 437d2b5e2840b220772c8d58a925c2b232bd0c2e (patch) | |
| tree | 903af1f0ef2eb457b717e1b15461c72c637ec773 /src/libstd/thread/mod.rs | |
| parent | a52da95ced667fe8ff490f73c0b041a4f926c041 (diff) | |
| parent | 20fd6cc98aa3497674d1285d5460f1e4ea85cdd4 (diff) | |
| download | rust-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.rs | 9 |
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 /// |
