Rollup merge of #63938 - tshepang:typo, r=Centril

or-pattern: fix typo in error message

cc https://github.com/rust-lang/rust/issues/54883.
This commit is contained in:
Mazdak Farrokhzad
2019-08-29 05:32:46 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -113,7 +113,7 @@ impl<'a> Parser<'a> {
let mut pats = vec![first_pat];
while self.eat_or_separator() {
let pat = self.parse_pat(expected).map_err(|mut err| {
err.span_label(lo, "while parsing this or-pattern staring here");
err.span_label(lo, "while parsing this or-pattern starting here");
err
})?;
self.maybe_recover_unexpected_comma(pat.span, rc)?;