From e9e319c460468123200b90ab46871cf8288edfec Mon Sep 17 00:00:00 2001 From: Denis Vasilik Date: Sun, 9 Aug 2020 21:20:57 +0200 Subject: [PATCH] Use intra-doc links --- library/core/src/time.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/library/core/src/time.rs b/library/core/src/time.rs index acaedbd135e..4d15a8d51af 100644 --- a/library/core/src/time.rs +++ b/library/core/src/time.rs @@ -33,9 +33,7 @@ const MICROS_PER_SEC: u64 = 1_000_000; /// `Duration`s implement many common traits, including [`Add`], [`Sub`], and other /// [`ops`] traits. It implements `Default` by returning a zero-length `Duration`. /// -/// [`Add`]: ../../std/ops/trait.Add.html -/// [`Sub`]: ../../std/ops/trait.Sub.html -/// [`ops`]: ../../std/ops/index.html +/// [`ops`]: crate::ops /// /// # Examples /// @@ -293,7 +291,7 @@ impl Duration { /// + duration.subsec_nanos() as f64 * 1e-9); /// ``` /// - /// [`subsec_nanos`]: #method.subsec_nanos + /// [`subsec_nanos`]: Duration::subsec_nanos #[stable(feature = "duration", since = "1.3.0")] #[rustc_const_stable(feature = "duration", since = "1.32.0")] #[inline] @@ -421,7 +419,7 @@ impl Duration { /// Checked `Duration` addition. Computes `self + other`, returning [`None`] /// if overflow occurred. /// - /// [`None`]: ../../std/option/enum.Option.html#variant.None + /// [`None`]: crate::option::Option::None /// /// # Examples /// @@ -457,7 +455,7 @@ impl Duration { /// Checked `Duration` subtraction. Computes `self - other`, returning [`None`] /// if the result would be negative or if overflow occurred. /// - /// [`None`]: ../../std/option/enum.Option.html#variant.None + /// [`None`]: crate::option::Option::None /// /// # Examples /// @@ -494,7 +492,7 @@ impl Duration { /// Checked `Duration` multiplication. Computes `self * other`, returning /// [`None`] if overflow occurred. /// - /// [`None`]: ../../std/option/enum.Option.html#variant.None + /// [`None`]: crate::option::Option::None /// /// # Examples /// @@ -526,7 +524,7 @@ impl Duration { /// Checked `Duration` division. Computes `self / other`, returning [`None`] /// if `other == 0`. /// - /// [`None`]: ../../std/option/enum.Option.html#variant.None + /// [`None`]: crate::option::Option::None /// /// # Examples ///