Skip to content

Commit c158962

Browse files
author
Felix Raimundo
committed
Add link to the module doc in park_timeout.
Part of #29378
1 parent 061b56b commit c158962

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/thread/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ pub fn park_timeout_ms(ms: u32) {
611611
/// preemption or platform differences that may not cause the maximum
612612
/// amount of time waited to be precisely `dur` long.
613613
///
614-
/// See the module doc for more detail.
614+
/// See the [module doc][thread] for more detail.
615615
///
616616
/// # Platform behavior
617617
///
@@ -637,6 +637,7 @@ pub fn park_timeout_ms(ms: u32) {
637637
/// }
638638
/// ```
639639
///
640+
/// [thread]: index.html
640641
/// [park]: fn.park.html
641642
#[stable(feature = "park_timeout", since = "1.4.0")]
642643
pub fn park_timeout(dur: Duration) {

0 commit comments

Comments
 (0)