From 022d9c8eb56144c00980c88d4b68a5a1e487484a Mon Sep 17 00:00:00 2001 From: Alexander Regueiro Date: Sun, 1 Sep 2019 18:09:59 +0100 Subject: Fixed grammar/style in error messages and reblessed tests. --- src/libsyntax/parse/parser/expr.rs | 2 +- src/libsyntax/parse/parser/stmt.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse') 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(); } } -- cgit 1.4.1-3-g733a5