summary refs log tree commit diff
path: root/library/std/src/thread
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-05-01 00:02:34 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-05-01 00:02:34 +0300
commit6083db7c4ef72ee5435e8157ba5b3f5397da1080 (patch)
treee97f6cc1e6d473d661f41deb1d26b1f378af26b9 /library/std/src/thread
parent8b214218730265f8f397615835f5158582835bef (diff)
downloadrust-6083db7c4ef72ee5435e8157ba5b3f5397da1080.tar.gz
rust-6083db7c4ef72ee5435e8157ba5b3f5397da1080.zip
Fix some links in the standard library
Diffstat (limited to 'library/std/src/thread')
-rw-r--r--library/std/src/thread/local.rs2
-rw-r--r--library/std/src/thread/mod.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs
index 4ab8fb2e905..f4750cdf764 100644
--- a/library/std/src/thread/local.rs
+++ b/library/std/src/thread/local.rs
@@ -21,6 +21,8 @@ use crate::fmt;
 /// The [`with`] method yields a reference to the contained value which cannot be
 /// sent across threads or escape the given closure.
 ///
+/// [`thread_local!`]: crate::thread_local
+///
 /// # Initialization and Destruction
 ///
 /// Initialization is dynamically performed on the first call to [`with`]
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index 99da5f7a87e..b4b1037a3cd 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -146,6 +146,7 @@
 //! [`Cell`]: crate::cell::Cell
 //! [`RefCell`]: crate::cell::RefCell
 //! [`with`]: LocalKey::with
+//! [`thread_local!`]: crate::thread_local
 
 #![stable(feature = "rust1", since = "1.0.0")]
 #![deny(unsafe_op_in_unsafe_fn)]