]> git.lizzy.rs Git - rust.git/commitdiff
docs: Link from tls macros to relevant docs
authorUlrik Sverdrup <root@localhost>
Sun, 10 May 2015 22:38:47 +0000 (00:38 +0200)
committerUlrik Sverdrup <root@localhost>
Mon, 11 May 2015 01:41:54 +0000 (03:41 +0200)
Fixes #25233

src/libstd/thread/local.rs
src/libstd/thread/scoped_tls.rs

index 41bdf034705d3bce65f68bce31504ad36da1ca86..2e043c58a5da94e9cf733a59d100d31545c16b78 100644 (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]
index 35684a1f39095b79df477a194f1a27a31961552b..e195c3aaa3f8f8c0b021fb2b6df45d37f0a30364 100644 (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 {