diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index de7d5a46453a..4e57b46207d5 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -2157,7 +2157,7 @@ macro_rules! lint_with_both_lhs_and_rhs { lint_with_both_lhs_and_rhs!(lint_chars_last_cmp_with_unwrap, cx, info); } -/// Wrapper fn for `CHARS_NEXT_CMP` and `CHARS_NEXT_CMP` lints. +/// Wrapper fn for `CHARS_NEXT_CMP` and `CHARS_LAST_CMP` lints. fn lint_chars_cmp( cx: &LateContext<'_, '_>, info: &BinaryExprInfo<'_>,