diff options
| author | Nadir Fejzic <nadirfejzo@gmail.com> | 2022-11-14 22:08:11 +0100 |
|---|---|---|
| committer | Nadir Fejzic <nadirfejzo@gmail.com> | 2022-11-14 22:08:11 +0100 |
| commit | 912dc919af03427288b64921bb4aea0010d071bf (patch) | |
| tree | eba218c24f4b9c19892fbd6c33a772e8887c718e | |
| parent | 3f89ab0618a1075f0c53c47d405c0f6e9bf43953 (diff) | |
| download | rust-912dc919af03427288b64921bb4aea0010d071bf.tar.gz rust-912dc919af03427288b64921bb4aea0010d071bf.zip | |
docs: update unchecked duration subtraction lint doc
| -rw-r--r-- | clippy_lints/src/instant_subtraction.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/instant_subtraction.rs b/clippy_lints/src/instant_subtraction.rs index 6d23a672856..3f72222f31b 100644 --- a/clippy_lints/src/instant_subtraction.rs +++ b/clippy_lints/src/instant_subtraction.rs @@ -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 |
