about summary refs log tree commit diff
path: root/library/std/src/thread
diff options
context:
space:
mode:
authorAnirudh <anirudh24seven@gmail.com>2022-09-26 19:28:51 +0530
committerAnirudh <anirudh24seven@gmail.com>2022-09-26 19:28:51 +0530
commit4c42e3831fd09fd1de401a7e60db0b21ec3b1ed6 (patch)
tree5c77048e9b534f1eeff31f87e96fd2139c77bddf /library/std/src/thread
parent21265dd0d209e7b682f249a3a45034f02d32650b (diff)
downloadrust-4c42e3831fd09fd1de401a7e60db0b21ec3b1ed6.tar.gz
rust-4c42e3831fd09fd1de401a7e60db0b21ec3b1ed6.zip
Update docs so that deprecated method points to relevant method
Diffstat (limited to 'library/std/src/thread')
-rw-r--r--library/std/src/thread/mod.rs2
1 files changed, 2 insertions, 0 deletions
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