Skip to content

Commit 912dc91

Browse files
committed
docs: update unchecked duration subtraction lint doc
1 parent 3f89ab0 commit 912dc91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/instant_subtraction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ declare_clippy_lint! {
4141

4242
declare_clippy_lint! {
4343
/// ### What it does
44-
/// Finds patterns of unchecked subtraction of [`Duration`] from [`Instant::now()`].
44+
/// Lints subtraction between an [`Instant`] and a [`Duration`].
4545
///
4646
/// ### Why is this bad?
4747
/// Unchecked subtraction could cause underflow on certain platforms, leading to

0 commit comments

Comments
 (0)