提交 13576dfc 编写于 作者: K keatinge

fix capitalization

上级 41f58a7c
......@@ -3436,8 +3436,8 @@ fn parse_pats(&mut self) -> PResult<'a, Vec<P<Pat>>> {
// 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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册