From 4c42e3831fd09fd1de401a7e60db0b21ec3b1ed6 Mon Sep 17 00:00:00 2001 From: Anirudh Date: Mon, 26 Sep 2022 19:28:51 +0530 Subject: Update docs so that deprecated method points to relevant method --- library/std/src/thread/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'library/std/src/thread') diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index ceea6986e33..2de7da3793f 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -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 -- cgit 1.4.1-3-g733a5