Skip to content

Commit c4e5a77

Browse files
unneeded_wildcard_pattern.rs: fix typo (rathter -> rather) (#16818)
changelog: none
2 parents 49a2f38 + c40e988 commit c4e5a77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clippy_lints/src/misc_early/unneeded_wildcard_pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub(super) fn check(cx: &EarlyContext<'_>, pat: &Pat) {
4141
.enumerate()
4242
.last()
4343
{
44-
// Unlike the tuples above, structs have patfields rathter than patterns, and separate out the
44+
// Unlike the tuples above, structs have patfields rather than patterns, and separate out the
4545
// `..` into a separate parameter. Also, the `..` can only be at the end of the pattern.
4646
let singlewild = patfields.len() - right_index - 1;
4747
span_lint(cx, patfields[singlewild].span.until(*rspan), right_index == 0);

0 commit comments

Comments
 (0)