Skip to content

Commit 20721a4

Browse files
committed
Add link to replacement function
1 parent 4fc6f5a commit 20721a4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/libstd/thread/mod.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ pub fn park() {
447447
*guard = false;
448448
}
449449

450+
/// Use [park_timeout].
451+
///
450452
/// Blocks unless or until the current thread's token is made available or
451453
/// the specified duration has been reached (may wake spuriously).
452454
///
@@ -456,7 +458,10 @@ pub fn park() {
456458
/// preemption or platform differences that may not cause the maximum
457459
/// amount of time waited to be precisely `ms` long.
458460
///
459-
/// See the module doc for more detail.
461+
/// See the [module documentation][thread] for more detail.
462+
///
463+
/// [thread]: index.html
464+
/// [park_timeout]: fn.park_timeout.html
460465
#[stable(feature = "rust1", since = "1.0.0")]
461466
#[rustc_deprecated(since = "1.6.0", reason = "replaced by `std::thread::park_timeout`")]
462467
pub fn park_timeout_ms(ms: u32) {

0 commit comments

Comments
 (0)