@@ -33,9 +33,7 @@ const MICROS_PER_SEC: u64 = 1_000_000;
33
33
/// `Duration`s implement many common traits, including [`Add`], [`Sub`], and other
34
34
/// [`ops`] traits. It implements `Default` by returning a zero-length `Duration`.
35
35
///
36
- /// [`Add`]: ../../std/ops/trait.Add.html
37
- /// [`Sub`]: ../../std/ops/trait.Sub.html
38
- /// [`ops`]: ../../std/ops/index.html
36
+ /// [`ops`]: crate::ops
39
37
///
40
38
/// # Examples
41
39
///
@@ -293,7 +291,7 @@ impl Duration {
293
291
/// + duration.subsec_nanos() as f64 * 1e-9);
294
292
/// ```
295
293
///
296
- /// [`subsec_nanos`]: #method. subsec_nanos
294
+ /// [`subsec_nanos`]: Duration:: subsec_nanos
297
295
#[ stable( feature = "duration" , since = "1.3.0" ) ]
298
296
#[ rustc_const_stable( feature = "duration" , since = "1.32.0" ) ]
299
297
#[ inline]
@@ -421,7 +419,7 @@ impl Duration {
421
419
/// Checked `Duration` addition. Computes `self + other`, returning [`None`]
422
420
/// if overflow occurred.
423
421
///
424
- /// [`None`]: ../../std/ option/enum. Option.html#variant. None
422
+ /// [`None`]: crate:: option:: Option:: None
425
423
///
426
424
/// # Examples
427
425
///
@@ -457,7 +455,7 @@ impl Duration {
457
455
/// Checked `Duration` subtraction. Computes `self - other`, returning [`None`]
458
456
/// if the result would be negative or if overflow occurred.
459
457
///
460
- /// [`None`]: ../../std/ option/enum. Option.html#variant. None
458
+ /// [`None`]: crate:: option:: Option:: None
461
459
///
462
460
/// # Examples
463
461
///
@@ -494,7 +492,7 @@ impl Duration {
494
492
/// Checked `Duration` multiplication. Computes `self * other`, returning
495
493
/// [`None`] if overflow occurred.
496
494
///
497
- /// [`None`]: ../../std/ option/enum. Option.html#variant. None
495
+ /// [`None`]: crate:: option:: Option:: None
498
496
///
499
497
/// # Examples
500
498
///
@@ -526,7 +524,7 @@ impl Duration {
526
524
/// Checked `Duration` division. Computes `self / other`, returning [`None`]
527
525
/// if `other == 0`.
528
526
///
529
- /// [`None`]: ../../std/ option/enum. Option.html#variant. None
527
+ /// [`None`]: crate:: option:: Option:: None
530
528
///
531
529
/// # Examples
532
530
///
0 commit comments