File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 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 {
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 }
You can’t perform that action at this time.
0 commit comments