Skip to content

Commit cda660b

Browse files
authored
Use explicit path link in place for doc in time
1 parent 5989bf4 commit cda660b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

library/std/src/time.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,7 @@ impl Add<Duration> for Instant {
359359
/// # Panics
360360
///
361361
/// This function may panic if the resulting point in time cannot be represented by the
362-
/// underlying data structure. See [`checked_add`] for a version without panic.
363-
///
364-
/// [`checked_add`]: Instant::checked_add
362+
/// underlying data structure. See [`Instant::checked_add`] for a version without panic.
365363
fn add(self, other: Duration) -> Instant {
366364
self.checked_add(other).expect("overflow when adding duration to instant")
367365
}
@@ -525,9 +523,7 @@ impl Add<Duration> for SystemTime {
525523
/// # Panics
526524
///
527525
/// This function may panic if the resulting point in time cannot be represented by the
528-
/// underlying data structure. See [`checked_add`] for a version without panic.
529-
///
530-
/// [`checked_add`]: SystemTime::checked_add
526+
/// underlying data structure. See [`SystemTime::checked_add`] for a version without panic.
531527
fn add(self, dur: Duration) -> SystemTime {
532528
self.checked_add(dur).expect("overflow when adding duration to instant")
533529
}

0 commit comments

Comments
 (0)