docs: update unchecked duration subtraction lint doc
This commit is contained in:
parent
3f89ab0618
commit
912dc919af
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ declare_clippy_lint! {
|
|||
|
||||
declare_clippy_lint! {
|
||||
/// ### What it does
|
||||
/// Finds patterns of unchecked subtraction of [`Duration`] from [`Instant::now()`].
|
||||
/// Lints subtraction between an [`Instant`] and a [`Duration`].
|
||||
///
|
||||
/// ### Why is this bad?
|
||||
/// Unchecked subtraction could cause underflow on certain platforms, leading to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue