Skip to content

Commit afe74c3

Browse files
author
Felix Raimundo
committed
Fix link
1 parent 03c9510 commit afe74c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libstd/thread/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -594,21 +594,21 @@ pub fn park() {
594594
*guard = false;
595595
}
596596

597-
/// Use [park_timeout].
597+
/// Use [`park_timeout`].
598598
///
599599
/// Blocks unless or until the current thread's token is made available or
600600
/// the specified duration has been reached (may wake spuriously).
601601
///
602-
/// The semantics of this function are equivalent to [`park`][park] except
602+
/// The semantics of this function are equivalent to [`park`] except
603603
/// that the thread will be blocked for roughly no longer than `dur`. This
604604
/// method should not be used for precise timing due to anomalies such as
605605
/// preemption or platform differences that may not cause the maximum
606606
/// amount of time waited to be precisely `ms` long.
607607
///
608-
/// See the [park documentation][park] for more detail.
608+
/// See the [park documentation][`park`] for more detail.
609609
///
610-
/// [park_timeout]: fn.park_timeout.html
611-
/// [park]: ../../std/thread/fn.park.html
610+
/// [`park_timeout`]: fn.park_timeout.html
611+
/// [`park`]: ../../std/thread/fn.park.html
612612
#[stable(feature = "rust1", since = "1.0.0")]
613613
#[rustc_deprecated(since = "1.6.0", reason = "replaced by `std::thread::park_timeout`")]
614614
pub fn park_timeout_ms(ms: u32) {

0 commit comments

Comments
 (0)