Skip to content

Commit e7b7c82

Browse files
committed
fix small grammatical nit
1 parent b7837ea commit e7b7c82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/rest_when_destructuring_struct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<'tcx> LateLintPass<'tcx> for RestWhenDestructuringStruct {
8181
}
8282

8383
let message = if a.variants()[vid].fields.is_empty() {
84-
"consider remove rest pattern (`..`)"
84+
"consider removing the rest pattern (`..`)"
8585
} else if fields.is_empty() {
8686
"consider explicitly ignoring fields with wildcard patterns (`x: _`)"
8787
} else {

tests/ui/rest_when_destructuring_struct.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ error: struct destructuring with rest (`..`)
4242
LL | E::C { .. } => (),
4343
| ^^^^^^^^^^^
4444
|
45-
help: consider remove rest pattern (`..`)
45+
help: consider removing the rest pattern (`..`)
4646
|
4747
LL - E::C { .. } => (),
4848
LL + E::C { } => (),

0 commit comments

Comments
 (0)