unneeded_wildcard_pattern.rs: fix typo (rathter -> rather) (#16818)

changelog: none
This commit is contained in:
Samuel Tardieu
2026-04-07 07:33:22 +00:00
committed by GitHub
@@ -41,7 +41,7 @@ pub(super) fn check(cx: &EarlyContext<'_>, pat: &Pat) {
.enumerate()
.last()
{
// 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
// `..` into a separate parameter. Also, the `..` can only be at the end of the pattern.
let singlewild = patfields.len() - right_index - 1;
span_lint(cx, patfields[singlewild].span.until(*rspan), right_index == 0);