mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
unneeded_wildcard_pattern.rs: fix typo (rathter -> rather) (#16818)
changelog: none
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user