Skip to content

Commit 44dbfc1

Browse files
author
Ulrik Sverdrup
committed
docs: Link from tls macros to relevant docs
Fixes #25233
1 parent 54f0a32 commit 44dbfc1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/libstd/thread/local.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ pub struct LocalKey<T> {
8585
}
8686

8787
/// Declare a new thread local storage key of type `std::thread::LocalKey`.
88+
///
89+
/// See [LocalKey documentation](thread/struct.LocalKey.html) for more information.
8890
#[macro_export]
8991
#[stable(feature = "rust1", since = "1.0.0")]
9092
#[allow_internal_unstable]

src/libstd/thread/scoped_tls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ pub struct ScopedKey<T> { #[doc(hidden)] pub inner: __impl::KeyInner<T> }
6666
///
6767
/// This macro declares a `static` item on which methods are used to get and
6868
/// set the value stored within.
69+
///
70+
/// See [ScopedKey documentation](thread/struct.ScopedKey.html) for more information.
6971
#[macro_export]
7072
#[allow_internal_unstable]
7173
macro_rules! scoped_thread_local {

0 commit comments

Comments
 (0)