Skip to content

Commit 2cb18f8

Browse files
committed
Fix rustdoc lint
1 parent 70cbb41 commit 2cb18f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

time/src/duration.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ impl fmt::Debug for Duration {
5151
}
5252
}
5353

54-
/// This is adapted from the `std` implementation, which uses mostly bit
54+
/// This is adapted from the [`std` implementation][std], which uses mostly bit
5555
/// operations to ensure the highest precision:
56-
/// https://github.com/rust-lang/rust/blob/3a37c2f0523c87147b64f1b8099fc9df22e8c53e/library/core/src/time.rs#L1262-L1340
56+
///
5757
/// Changes from `std` are marked and explained below.
58+
///
59+
/// [std]: https://github.com/rust-lang/rust/blob/3a37c2f0523c87147b64f1b8099fc9df22e8c53e/library/core/src/time.rs#L1262-L1340
5860
#[rustfmt::skip] // Skip `rustfmt` because it reformats the arguments of the macro weirdly.
5961
macro_rules! try_from_secs {
6062
(

0 commit comments

Comments
 (0)