Skip to content

Commit e9e319c

Browse files
committed
Use intra-doc links
1 parent dbc2ef2 commit e9e319c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

library/core/src/time.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ const MICROS_PER_SEC: u64 = 1_000_000;
3333
/// `Duration`s implement many common traits, including [`Add`], [`Sub`], and other
3434
/// [`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,7 +419,7 @@ 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
422+
/// [`None`]: crate::option::Option::None
425423
///
426424
/// # Examples
427425
///
@@ -457,7 +455,7 @@ impl Duration {
457455
/// Checked `Duration` subtraction. Computes `self - other`, returning [`None`]
458456
/// if the result would be negative or if overflow occurred.
459457
///
460-
/// [`None`]: ../../std/option/enum.Option.html#variant.None
458+
/// [`None`]: crate::option::Option::None
461459
///
462460
/// # Examples
463461
///
@@ -494,7 +492,7 @@ impl Duration {
494492
/// Checked `Duration` multiplication. Computes `self * other`, returning
495493
/// [`None`] if overflow occurred.
496494
///
497-
/// [`None`]: ../../std/option/enum.Option.html#variant.None
495+
/// [`None`]: crate::option::Option::None
498496
///
499497
/// # Examples
500498
///
@@ -526,7 +524,7 @@ impl Duration {
526524
/// Checked `Duration` division. Computes `self / other`, returning [`None`]
527525
/// if `other == 0`.
528526
///
529-
/// [`None`]: ../../std/option/enum.Option.html#variant.None
527+
/// [`None`]: crate::option::Option::None
530528
///
531529
/// # Examples
532530
///

0 commit comments

Comments
 (0)