We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 49a2f38 + c40e988 commit c4e5a77Copy full SHA for c4e5a77
1 file changed
clippy_lints/src/misc_early/unneeded_wildcard_pattern.rs
@@ -41,7 +41,7 @@ pub(super) fn check(cx: &EarlyContext<'_>, pat: &Pat) {
41
.enumerate()
42
.last()
43
{
44
- // Unlike the tuples above, structs have patfields rathter than patterns, and separate out the
+ // Unlike the tuples above, structs have patfields rather than patterns, and separate out the
45
// `..` into a separate parameter. Also, the `..` can only be at the end of the pattern.
46
let singlewild = patfields.len() - right_index - 1;
47
span_lint(cx, patfields[singlewild].span.until(*rspan), right_index == 0);
0 commit comments