From a566eb37659ecbdcfe1403f8ccab753714dbec60 Mon Sep 17 00:00:00 2001 From: Nadir Fejzic Date: Mon, 7 Nov 2022 20:59:55 +0100 Subject: [PATCH] docs: update docs for unchecked duration subtr. lint --- src/docs/unchecked_duration_subtraction.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/unchecked_duration_subtraction.txt b/src/docs/unchecked_duration_subtraction.txt index 6b9c9308c87e..15a4c02c6065 100644 --- a/src/docs/unchecked_duration_subtraction.txt +++ b/src/docs/unchecked_duration_subtraction.txt @@ -2,7 +2,7 @@ Finds patterns of unchecked subtraction of [`Duration`] from [`Instant::now()`]. ### Why is this bad? -Unchecked subtraction could cause underflow on certain platforms, leading to bugs and/or +Unchecked subtraction could cause underflow on certain platforms, leading to unintentional panics. ### Example