@@ -30,12 +30,10 @@ const MICROS_PER_SEC: u64 = 1_000_000;
30
30
/// nanosecond-level precision, APIs binding a system timeout will typically round up
31
31
/// the number of nanoseconds.
32
32
///
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`.
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,8 +419,6 @@ 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
425
- ///
426
422
/// # Examples
427
423
///
428
424
/// Basic usage:
@@ -457,8 +453,6 @@ impl Duration {
457
453
/// Checked `Duration` subtraction. Computes `self - other`, returning [`None`]
458
454
/// if the result would be negative or if overflow occurred.
459
455
///
460
- /// [`None`]: ../../std/option/enum.Option.html#variant.None
461
- ///
462
456
/// # Examples
463
457
///
464
458
/// Basic usage:
@@ -494,8 +488,6 @@ impl Duration {
494
488
/// Checked `Duration` multiplication. Computes `self * other`, returning
495
489
/// [`None`] if overflow occurred.
496
490
///
497
- /// [`None`]: ../../std/option/enum.Option.html#variant.None
498
- ///
499
491
/// # Examples
500
492
///
501
493
/// Basic usage:
@@ -526,8 +518,6 @@ impl Duration {
526
518
/// Checked `Duration` division. Computes `self / other`, returning [`None`]
527
519
/// if `other == 0`.
528
520
///
529
- /// [`None`]: ../../std/option/enum.Option.html#variant.None
530
- ///
531
521
/// # Examples
532
522
///
533
523
/// Basic usage:
0 commit comments