about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index f347f7af06d..e7c46bfd7bc 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3436,8 +3436,8 @@ impl<'a> Parser<'a> {
                 // 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);