Skip to content

Commit

Permalink
update wording for std::thread::sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasya Novikov committed Sep 28, 2018
1 parent 1a605a6 commit 049ccbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libstd/thread/mod.rs
Expand Up @@ -650,15 +650,15 @@ pub fn panicking() -> bool {
panicking::panicking()
}

/// Puts the current thread to sleep for the specified amount of time.
/// Puts the current thread to sleep for at least the specified amount of time.
///
/// The thread may sleep longer than the duration specified due to scheduling
/// specifics or platform-dependent functionality.
/// specifics or platform-dependent functionality. It will never sleep less.
///
/// # Platform-specific behavior
///
/// On Unix platforms this function might return early due to a
/// signal being received or a spurious wakeup.
/// On Unix platforms this function may invoke multiple syscalls
/// in case of a signal being received or a spurious wakeup.
///
/// # Examples
///
Expand Down

0 comments on commit 049ccbb

Please sign in to comment.