1
Fork 0

docs: Link from tls macros to relevant docs

Fixes #25233
This commit is contained in:
Ulrik Sverdrup 2015-05-11 00:38:47 +02:00
parent 02b8e4e6cf
commit 098040f8fc
2 changed files with 4 additions and 0 deletions

View file

@ -85,6 +85,8 @@ pub struct LocalKey<T> {
}
/// Declare a new thread local storage key of type `std::thread::LocalKey`.
///
/// See [LocalKey documentation](thread/struct.LocalKey.html) for more information.
#[macro_export]
#[stable(feature = "rust1", since = "1.0.0")]
#[allow_internal_unstable]

View file

@ -66,6 +66,8 @@ pub struct ScopedKey<T> { #[doc(hidden)] pub inner: __impl::KeyInner<T> }
///
/// This macro declares a `static` item on which methods are used to get and
/// set the value stored within.
///
/// See [ScopedKey documentation](thread/struct.ScopedKey.html) for more information.
#[macro_export]
#[allow_internal_unstable]
macro_rules! scoped_thread_local {