mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
docs: update unchecked duration subtraction lint doc
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user