From 4c42e3831fd09fd1de401a7e60db0b21ec3b1ed6 Mon Sep 17 00:00:00 2001 From: Anirudh Date: Mon, 26 Sep 2022 19:28:51 +0530 Subject: [PATCH] Update docs so that deprecated method points to relevant method --- library/std/src/thread/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index ceea6986e3335..2de7da3793f09 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