Skip to content

Commit 722e159

Browse files
committed
Change use_last description
1 parent bc391ab commit 722e159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/use_last.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare_clippy_lint! {
3737
/// ```
3838
pub USE_LAST,
3939
complexity,
40-
"using `x.get(x.len() - 1)` instead of `x.last()`"
40+
"Using `x.get(x.len() - 1)` when `x.last()` is correct and simpler"
4141
}
4242

4343
declare_lint_pass!(UseLast => [USE_LAST]);

0 commit comments

Comments
 (0)