about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/expr.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-06 19:00:49 +0200
committerGitHub <noreply@github.com>2019-09-06 19:00:49 +0200
commitafb6a7002da240f77bd8f6ebb06f9c5d55c20dfb (patch)
treef33e6fb7e357ce0296871b7e623ad3a3d1201e1b /src/libsyntax/parse/parser/expr.rs
parent57e900e453ab271aa30371208aee9cf95f836ab6 (diff)
parent022d9c8eb56144c00980c88d4b68a5a1e487484a (diff)
downloadrust-afb6a7002da240f77bd8f6ebb06f9c5d55c20dfb.tar.gz
rust-afb6a7002da240f77bd8f6ebb06f9c5d55c20dfb.zip
Rollup merge of #64202 - alexreg:rush-pr-1, r=Centril
Fixed grammar/style in some error messages

Factored out from hacking on rustc for work on the REPL.

r? @Centril
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
-rw-r--r--src/libsyntax/parse/parser/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/expr.rs b/src/libsyntax/parse/parser/expr.rs
index 3db9c899dba..59b936a7eb4 100644
--- a/src/libsyntax/parse/parser/expr.rs
+++ b/src/libsyntax/parse/parser/expr.rs
@@ -982,7 +982,7 @@ impl<'a> Parser<'a> {
                 }
                 if self.is_do_catch_block() {
                     let mut db = self.fatal("found removed `do catch` syntax");
-                    db.help("Following RFC #2388, the new non-placeholder syntax is `try`");
+                    db.help("following RFC #2388, the new non-placeholder syntax is `try`");
                     return Err(db);
                 }
                 if self.is_try_block() {