Skip to content

Commit 4c42e38

Browse files
Update docs so that deprecated method points to relevant method
1 parent 21265dd commit 4c42e38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/thread/mod.rs

+2
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)