From 6083db7c4ef72ee5435e8157ba5b3f5397da1080 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sun, 1 May 2022 00:02:34 +0300 Subject: Fix some links in the standard library --- library/std/src/thread/local.rs | 2 ++ library/std/src/thread/mod.rs | 1 + 2 files changed, 3 insertions(+) (limited to 'library/std/src/thread') 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)] -- cgit 1.4.1-3-g733a5