about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorAlexander Regueiro <alexreg@me.com>2019-09-01 18:09:59 +0100
committerAlexander Regueiro <alexreg@me.com>2019-09-06 03:46:08 +0100
commit022d9c8eb56144c00980c88d4b68a5a1e487484a (patch)
tree738a2c5192caf1cdaf2de96213b14cd1996dfe9c /src/libsyntax/parse/parser
parent618768492f0c731fcb770dc2d178abe840846419 (diff)
downloadrust-022d9c8eb56144c00980c88d4b68a5a1e487484a.tar.gz
rust-022d9c8eb56144c00980c88d4b68a5a1e487484a.zip
Fixed grammar/style in error messages and reblessed tests.
Diffstat (limited to 'src/libsyntax/parse/parser')
-rw-r--r--src/libsyntax/parse/parser/expr.rs2
-rw-r--r--src/libsyntax/parse/parser/stmt.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser/expr.rs b/src/libsyntax/parse/parser/expr.rs
index e502a08f4b2..98c3562b321 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() {
diff --git a/src/libsyntax/parse/parser/stmt.rs b/src/libsyntax/parse/parser/stmt.rs
index 651ebf6342e..748c1a168b0 100644
--- a/src/libsyntax/parse/parser/stmt.rs
+++ b/src/libsyntax/parse/parser/stmt.rs
@@ -469,7 +469,7 @@ impl<'a> Parser<'a> {
         self.diagnostic().struct_span_warn(self.token.span, {
             &format!("expected `;`, found {}", self.this_token_descr())
         }).note({
-            "This was erroneously allowed and will become a hard error in a future release"
+            "this was erroneously allowed and will become a hard error in a future release"
         }).emit();
     }
 }