diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-01-01 11:53:18 -0800 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2017-01-01 11:53:18 -0800 |
| commit | 20fd6cc98aa3497674d1285d5460f1e4ea85cdd4 (patch) | |
| tree | 7c871eb21cb0232c9170f2a206583c8d1fe7a5d1 /src/libstd | |
| parent | 7b659cfdbce094a790dbb246da2681a47565782a (diff) | |
| download | rust-20fd6cc98aa3497674d1285d5460f1e4ea85cdd4.tar.gz rust-20fd6cc98aa3497674d1285d5460f1e4ea85cdd4.zip | |
Add 'platform-specific' section to `sleep_ms` to match `sleep`.
Diffstat (limited to 'src/libstd')
| -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 81979fd41a6..b3522ac35f2 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 /// |
