diff --git a/clippy_lints/src/formatting.rs b/clippy_lints/src/formatting.rs index f3374ccb5ea..90c0a5a9172 100644 --- a/clippy_lints/src/formatting.rs +++ b/clippy_lints/src/formatting.rs @@ -56,7 +56,7 @@ declare_lint! { /// **Example:** /// ```rust,ignore /// let a = &[ -/// -1, -2, -3 // <= no coma here +/// -1, -2, -3 // <= no comma here /// -4, -5, -6 /// ]; /// ``` diff --git a/tests/ui/formatting.rs b/tests/ui/formatting.rs index 8d3c1d938e5..03064bf5ae7 100644 --- a/tests/ui/formatting.rs +++ b/tests/ui/formatting.rs @@ -99,13 +99,13 @@ fn main() { // possible missing comma in an array let _ = &[ - -1, -2, -3 // <= no coma here + -1, -2, -3 // <= no comma here -4, -5, -6 ]; let _ = &[ - -1, -2, -3 // <= no coma here + -1, -2, -3 // <= no comma here *4, -5, -6 diff --git a/tests/ui/formatting.stderr b/tests/ui/formatting.stderr index 68260410fa9..c59a202de5f 100644 --- a/tests/ui/formatting.stderr +++ b/tests/ui/formatting.stderr @@ -92,7 +92,7 @@ error: this looks like you are trying to use `.. != ..`, but you really are doin error: possibly missing a comma here --> $DIR/formatting.rs:102:19 | -102 | -1, -2, -3 // <= no coma here +102 | -1, -2, -3 // <= no comma here | ^ | = note: #[deny(possible_missing_comma)] implied by #[deny(clippy)] @@ -106,7 +106,7 @@ note: lint level defined here error: possibly missing a comma here --> $DIR/formatting.rs:108:19 | -108 | -1, -2, -3 // <= no coma here +108 | -1, -2, -3 // <= no comma here | ^ | = note: #[deny(possible_missing_comma)] implied by #[deny(clippy)]