Merge pull request #1547 from mathstuf/comma-typos
typos: coma -> comma
This commit is contained in:
commit
51931c70b3
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
/// ];
|
||||
/// ```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Add table
Reference in a new issue