@@ -30,12 +30,10 @@ const MICROS_PER_SEC: u64 = 1_000_000;
3030/// nanosecond-level precision, APIs binding a system timeout will typically round up
3131/// the number of nanoseconds.
3232///
33- /// `Duration`s implement many common traits, including [`Add`], [`Sub`], and other
34- /// [`ops`] traits. It implements `Default` by returning a zero-length `Duration`.
33+ /// [ `Duration`] s implement many common traits, including [`Add`], [`Sub`], and other
34+ /// [`ops`] traits. It implements [ `Default`] by returning a zero-length `Duration`.
3535///
36- /// [`Add`]: ../../std/ops/trait.Add.html
37- /// [`Sub`]: ../../std/ops/trait.Sub.html
38- /// [`ops`]: ../../std/ops/index.html
36+ /// [`ops`]: crate::ops
3937///
4038/// # Examples
4139///
@@ -293,7 +291,7 @@ impl Duration {
293291 /// + duration.subsec_nanos() as f64 * 1e-9);
294292 /// ```
295293 ///
296- /// [`subsec_nanos`]: #method. subsec_nanos
294+ /// [`subsec_nanos`]: Duration:: subsec_nanos
297295 #[ stable( feature = "duration" , since = "1.3.0" ) ]
298296 #[ rustc_const_stable( feature = "duration" , since = "1.32.0" ) ]
299297 #[ inline]
@@ -421,8 +419,6 @@ impl Duration {
421419 /// Checked `Duration` addition. Computes `self + other`, returning [`None`]
422420 /// if overflow occurred.
423421 ///
424- /// [`None`]: ../../std/option/enum.Option.html#variant.None
425- ///
426422 /// # Examples
427423 ///
428424 /// Basic usage:
@@ -457,8 +453,6 @@ impl Duration {
457453 /// Checked `Duration` subtraction. Computes `self - other`, returning [`None`]
458454 /// if the result would be negative or if overflow occurred.
459455 ///
460- /// [`None`]: ../../std/option/enum.Option.html#variant.None
461- ///
462456 /// # Examples
463457 ///
464458 /// Basic usage:
@@ -494,8 +488,6 @@ impl Duration {
494488 /// Checked `Duration` multiplication. Computes `self * other`, returning
495489 /// [`None`] if overflow occurred.
496490 ///
497- /// [`None`]: ../../std/option/enum.Option.html#variant.None
498- ///
499491 /// # Examples
500492 ///
501493 /// Basic usage:
@@ -526,8 +518,6 @@ impl Duration {
526518 /// Checked `Duration` division. Computes `self / other`, returning [`None`]
527519 /// if `other == 0`.
528520 ///
529- /// [`None`]: ../../std/option/enum.Option.html#variant.None
530- ///
531521 /// # Examples
532522 ///
533523 /// Basic usage:
0 commit comments