File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -359,9 +359,7 @@ impl Add<Duration> for Instant {
359
359
/// # Panics
360
360
///
361
361
/// 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.
365
363
fn add ( self , other : Duration ) -> Instant {
366
364
self . checked_add ( other) . expect ( "overflow when adding duration to instant" )
367
365
}
@@ -525,9 +523,7 @@ impl Add<Duration> for SystemTime {
525
523
/// # Panics
526
524
///
527
525
/// 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.
531
527
fn add ( self , dur : Duration ) -> SystemTime {
532
528
self . checked_add ( dur) . expect ( "overflow when adding duration to instant" )
533
529
}
You can’t perform that action at this time.
0 commit comments