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-24 23:44:28 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-08-24 23:44:28 +0200
commit0ab84303326fff65d5d0a168fd47448e05135c9f (patch)
tree44e6ef28d83dadafed46d702da0b2f6cd358bb71 /src/libsyntax/parse/parser
parente3747722fbb8a44f9053922e4c39338a3a1f9597 (diff)
downloadrust-0ab84303326fff65d5d0a168fd47448e05135c9f.tar.gz
rust-0ab84303326fff65d5d0a168fd47448e05135c9f.zip
parser: reword || recovery.
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 dc6632cf10d..0b3de57fd6f 100644
--- a/src/libsyntax/parse/parser/pat.rs
+++ b/src/libsyntax/parse/parser/pat.rs
@@ -119,7 +119,7 @@ impl<'a> Parser<'a> {
         self.struct_span_err(self.token.span, "unexpected token `||` after pattern")
             .span_suggestion(
                 self.token.span,
-                "use a single `|` to specify multiple patterns",
+                "use a single `|` to separate multiple alternative patterns",
                 "|".to_owned(),
                 Applicability::MachineApplicable
             )