about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorStefan Schindler <dns2utf8@estada.ch>2016-08-03 13:34:49 +0200
committerStefan Schindler <dns2utf8@estada.ch>2016-08-03 23:12:25 +0200
commit20721a4923db5a8a462d8a8229d1f1a13e56e17c (patch)
treed1d354e61fd48d9ff0bd28f76891266fada36f46 /src/libstd/thread
parent4fc6f5ac264a58ddaaaf3d2ddfbe011eb675edaf (diff)
downloadrust-20721a4923db5a8a462d8a8229d1f1a13e56e17c.tar.gz
rust-20721a4923db5a8a462d8a8229d1f1a13e56e17c.zip
Add link to replacement function
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index 40d5c700246..f06c105d30e 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -447,6 +447,8 @@ pub fn park() {
     *guard = false;
 }
 
+/// Use [park_timeout].
+///
 /// Blocks unless or until the current thread's token is made available or
 /// the specified duration has been reached (may wake spuriously).
 ///
@@ -456,7 +458,10 @@ pub fn park() {
 /// preemption or platform differences that may not cause the maximum
 /// amount of time waited to be precisely `ms` long.
 ///
-/// See the module doc for more detail.
+/// See the [module documentation][thread] for more detail.
+///
+/// [thread]: index.html
+/// [park_timeout]: fn.park_timeout.html
 #[stable(feature = "rust1", since = "1.0.0")]
 #[rustc_deprecated(since = "1.6.0", reason = "replaced by `std::thread::park_timeout`")]
 pub fn park_timeout_ms(ms: u32) {