about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-29 05:32:46 +0200
committerGitHub <noreply@github.com>2019-08-29 05:32:46 +0200
commiteb4ac32c5944e5c690f8731a8b25eaae8cbad0a7 (patch)
tree9ba70ea91558fce2bd38f29dac09c98ea28423a2 /src/libsyntax/parse/parser
parentb6df8276f8dca6f3da04b6ddf324a68832ccaa3b (diff)
parent6f67bbc445e5c2b426abc4ac0db4c1dcffd48452 (diff)
downloadrust-eb4ac32c5944e5c690f8731a8b25eaae8cbad0a7.tar.gz
rust-eb4ac32c5944e5c690f8731a8b25eaae8cbad0a7.zip
Rollup merge of #63938 - tshepang:typo, r=Centril
or-pattern: fix typo in error message

cc https://github.com/rust-lang/rust/issues/54883.
Diffstat (limited to 'src/libsyntax/parse/parser')
-rw-r--r--src/libsyntax/parse/parser/pat.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/pat.rs b/src/libsyntax/parse/parser/pat.rs
index 78c9a289b37..4c6b6ce38f6 100644
--- a/src/libsyntax/parse/parser/pat.rs
+++ b/src/libsyntax/parse/parser/pat.rs
@@ -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)?;