Rollup merge of #102313 - anirudh24seven:update_sleep_ms_doc, r=Mark-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.
This commit is contained in:
Matthias Krüger 2022-10-02 03:16:38 +02:00 committed by GitHub
commit 649c09996f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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