docs: update docs for unchecked duration subtr. lint
This commit is contained in:
parent
2f2eb2e4ba
commit
a566eb3765
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue