diff options
| author | James Box <james@jbox.dev> | 2020-06-27 22:55:42 -0500 |
|---|---|---|
| committer | James Box <james@jbox.dev> | 2020-06-27 22:55:42 -0500 |
| commit | 7231e575461d1246c247b2ac3e97c1adcab49737 (patch) | |
| tree | f8d982aeccacc95f3810d8d9544f071c33a285a4 /src/librustc_parse/parser | |
| parent | 9bdd2db3a60176012f4dc240eea02d615cc60061 (diff) | |
Fix wording for anonymous parameter name help
Diffstat (limited to 'src/librustc_parse/parser')
| -rw-r--r-- | src/librustc_parse/parser/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/diagnostics.rs b/src/librustc_parse/parser/diagnostics.rs index fc9ffc30924..e27bbc532cf 100644 --- a/src/librustc_parse/parser/diagnostics.rs +++ b/src/librustc_parse/parser/diagnostics.rs @@ -1415,7 +1415,7 @@ impl<'a> Parser<'a> { if self.token != token::Lt { err.span_suggestion( pat.span, - "if this was a parameter name, give it a type", + "if this is a parameter name, give it a type", format!("{}: TypeName", ident), Applicability::HasPlaceholders, ); |
