fix capitalization
This commit is contained in:
parent
41f58a7cf6
commit
13576dfcd4
@ -3436,8 +3436,8 @@ impl<'a> Parser<'a> {
|
||||
// Accidental use of || instead of | inbetween patterns
|
||||
if self.token == token::OrOr {
|
||||
return Err(self.span_fatal_help(
|
||||
self.span, "Unexpected token `||` after pattern",
|
||||
"Did you mean to use `|` to specify multiple patterns instead?"));
|
||||
self.span, "unexpected token `||` after pattern",
|
||||
"did you mean to use `|` to specify multiple patterns instead?"));
|
||||
}
|
||||
|
||||
return Ok(pats);
|
||||
|
Loading…
x
Reference in New Issue
Block a user