docs: update unchecked duration subtraction lint doc

This commit is contained in:
Nadir Fejzic 2022-11-14 22:08:11 +01:00
parent 3f89ab0618
commit 912dc919af

View file

@ -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