docs: update docs for unchecked duration subtr. lint

This commit is contained in:
Nadir Fejzic 2022-11-07 20:59:55 +01:00
parent 2f2eb2e4ba
commit a566eb3765

View file

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