about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2019-08-28 02:23:58 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2019-08-28 02:23:58 +0200
commit6f67bbc445e5c2b426abc4ac0db4c1dcffd48452 (patch)
treec365f05f188752403dd113469dd6e844eea2867d /src/libsyntax/parse
parent53df91a9b24ad999e7ca896447af6f5f74fe43bc (diff)
downloadrust-6f67bbc445e5c2b426abc4ac0db4c1dcffd48452.tar.gz
rust-6f67bbc445e5c2b426abc4ac0db4c1dcffd48452.zip
or-pattern: fix typo in error message
Diffstat (limited to 'src/libsyntax/parse')
-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)?;