Skip to content

Commit d5dabcf

Browse files
authored
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.
2 parents 8fec694 + 3686de0 commit d5dabcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

std/src/thread/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,8 @@ pub fn panicking() -> bool {
779779
panicking::panicking()
780780
}
781781

782+
/// Use [`sleep`].
783+
///
782784
/// Puts the current thread to sleep for at least the specified amount of time.
783785
///
784786
/// The thread may sleep longer than the duration specified due to scheduling

0 commit comments

Comments
 (0)