Skip to content

Commit

Permalink
docs: Link from tls macros to relevant docs
Browse files Browse the repository at this point in the history
Fixes #25233
  • Loading branch information
Ulrik Sverdrup committed May 11, 2015
1 parent 02b8e4e commit 098040f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstd/thread/local.rs
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/thread/scoped_tls.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 098040f

Please sign in to comment.