@@ -585,16 +585,17 @@ pub fn park() {
585
585
/// Blocks unless or until the current thread's token is made available or
586
586
/// the specified duration has been reached (may wake spuriously).
587
587
///
588
- /// The semantics of this function are equivalent to `park()` except that the
589
- /// thread will be blocked for roughly no longer than `ms `. This method
590
- /// should not be used for precise timing due to anomalies such as
588
+ /// The semantics of this function are equivalent to [ `park()`][[park] except
589
+ /// that the thread will be blocked for roughly no longer than `dur `. This
590
+ /// method should not be used for precise timing due to anomalies such as
591
591
/// preemption or platform differences that may not cause the maximum
592
592
/// amount of time waited to be precisely `ms` long.
593
593
///
594
594
/// See the [module documentation][thread] for more detail.
595
595
///
596
596
/// [thread]: index.html
597
597
/// [park_timeout]: fn.park_timeout.html
598
+ /// [park]: fn.park.html
598
599
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
599
600
#[ rustc_deprecated( since = "1.6.0" , reason = "replaced by `std::thread::park_timeout`" ) ]
600
601
pub fn park_timeout_ms ( ms : u32 ) {
@@ -604,9 +605,9 @@ pub fn park_timeout_ms(ms: u32) {
604
605
/// Blocks unless or until the current thread's token is made available or
605
606
/// the specified duration has been reached (may wake spuriously).
606
607
///
607
- /// The semantics of this function are equivalent to `park()` except that the
608
- /// thread will be blocked for roughly no longer than `dur`. This method
609
- /// should not be used for precise timing due to anomalies such as
608
+ /// The semantics of this function are equivalent to [ `park()`][[park] except
609
+ /// that the thread will be blocked for roughly no longer than `dur`. This
610
+ /// method should not be used for precise timing due to anomalies such as
610
611
/// preemption or platform differences that may not cause the maximum
611
612
/// amount of time waited to be precisely `dur` long.
612
613
///
@@ -635,6 +636,8 @@ pub fn park_timeout_ms(ms: u32) {
635
636
/// park_timeout(timeout);
636
637
/// }
637
638
/// ```
639
+ ///
640
+ /// [park]: fn.park.html
638
641
#[ stable( feature = "park_timeout" , since = "1.4.0" ) ]
639
642
pub fn park_timeout ( dur : Duration ) {
640
643
let thread = current ( ) ;
0 commit comments