fix capitalization
This commit is contained in:
parent
41f58a7cf6
commit
13576dfcd4
1 changed files with 2 additions and 2 deletions
|
@ -3436,8 +3436,8 @@ impl<'a> Parser<'a> {
|
||||||
// Accidental use of || instead of | inbetween patterns
|
// Accidental use of || instead of | inbetween patterns
|
||||||
if self.token == token::OrOr {
|
if self.token == token::OrOr {
|
||||||
return Err(self.span_fatal_help(
|
return Err(self.span_fatal_help(
|
||||||
self.span, "Unexpected token `||` after pattern",
|
self.span, "unexpected token `||` after pattern",
|
||||||
"Did you mean to use `|` to specify multiple patterns instead?"));
|
"did you mean to use `|` to specify multiple patterns instead?"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(pats);
|
return Ok(pats);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue