about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-08-13 11:05:42 +0900
committerGitHub <noreply@github.com>2020-08-13 11:05:42 +0900
commit9ea03ddd0b189fda850ae646057349c49f4ce7e4 (patch)
treec42ebaea10eb90459affa88e6cd1a815bb2ce573
parenta62dd23c5c924f1f6c498aacbbb098e5726e34ac (diff)
parentcda660b5fcb74289f7be8414353680db17c4b1bb (diff)
downloadrust-9ea03ddd0b189fda850ae646057349c49f4ce7e4.tar.gz
rust-9ea03ddd0b189fda850ae646057349c49f4ce7e4.zip
Rollup merge of #75455 - pickfire:patch-3, r=jyn514
Use explicit path link in place for doc in time

r? @jyn514

More worth for your time. :P
-rw-r--r--library/std/src/time.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/library/std/src/time.rs b/library/std/src/time.rs
index 969c442884d..02161ecb4c8 100644
--- a/library/std/src/time.rs
+++ b/library/std/src/time.rs
@@ -359,9 +359,7 @@ impl Add<Duration> for Instant {
     /// # Panics
     ///
     /// This function may panic if the resulting point in time cannot be represented by the
-    /// underlying data structure. See [`checked_add`] for a version without panic.
-    ///
-    /// [`checked_add`]: Instant::checked_add
+    /// underlying data structure. See [`Instant::checked_add`] for a version without panic.
     fn add(self, other: Duration) -> Instant {
         self.checked_add(other).expect("overflow when adding duration to instant")
     }
@@ -525,9 +523,7 @@ impl Add<Duration> for SystemTime {
     /// # Panics
     ///
     /// This function may panic if the resulting point in time cannot be represented by the
-    /// underlying data structure. See [`checked_add`] for a version without panic.
-    ///
-    /// [`checked_add`]: SystemTime::checked_add
+    /// underlying data structure. See [`SystemTime::checked_add`] for a version without panic.
     fn add(self, dur: Duration) -> SystemTime {
         self.checked_add(dur).expect("overflow when adding duration to instant")
     }