Skip to content

Commit 6f67bbc

Browse files
committed
or-pattern: fix typo in error message
1 parent 53df91a commit 6f67bbc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libsyntax/parse/parser/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<'a> Parser<'a> {
113113
let mut pats = vec![first_pat];
114114
while self.eat_or_separator() {
115115
let pat = self.parse_pat(expected).map_err(|mut err| {
116-
err.span_label(lo, "while parsing this or-pattern staring here");
116+
err.span_label(lo, "while parsing this or-pattern starting here");
117117
err
118118
})?;
119119
self.maybe_recover_unexpected_comma(pat.span, rc)?;

src/test/ui/or-patterns/while-parsing-this-or-pattern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
fn main() {
44
match Some(42) {
55
Some(42) | .=. => {} //~ ERROR expected pattern, found `.`
6-
//~^ while parsing this or-pattern staring here
6+
//~^ while parsing this or-pattern starting here
77
//~| NOTE expected pattern
88
}
99
}

src/test/ui/or-patterns/while-parsing-this-or-pattern.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: expected pattern, found `.`
44
LL | Some(42) | .=. => {}
55
| -------- ^ expected pattern
66
| |
7-
| while parsing this or-pattern staring here
7+
| while parsing this or-pattern starting here
88

99
error: aborting due to previous error
1010

0 commit comments

Comments
 (0)