Skip to content

Commit

Permalink
Rollup merge of #102313 - anirudh24seven:update_sleep_ms_doc, r=Mark-…
Browse files Browse the repository at this point in the history
…Simulacrum

Update docs so that deprecated method points to relevant method

The docs for the deprecated 'park_timeout_ms' method suggests that the user 'use park_timeout' method instead (at https://doc.rust-lang.org/std/thread/index.html).

Making a similar change so that the docs for the deprecated `sleep_ms` method suggest that the user `use sleep` method instead.
  • Loading branch information
matthiaskrgr authored Oct 2, 2022
2 parents e8e3c5c + 4c42e38 commit 649c099
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/std/src/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ pub fn panicking() -> bool {
panicking::panicking()
}

/// Use [`sleep`].
///
/// 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
Expand Down

0 comments on commit 649c099

Please sign in to comment.