diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-06 19:00:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-06 19:00:49 +0200 |
| commit | afb6a7002da240f77bd8f6ebb06f9c5d55c20dfb (patch) | |
| tree | f33e6fb7e357ce0296871b7e623ad3a3d1201e1b /src/libsyntax/parse/parser | |
| parent | 57e900e453ab271aa30371208aee9cf95f836ab6 (diff) | |
| parent | 022d9c8eb56144c00980c88d4b68a5a1e487484a (diff) | |
| download | rust-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')
| -rw-r--r-- | src/libsyntax/parse/parser/expr.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser/stmt.rs | 2 |
2 files changed, 2 insertions, 2 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() { 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(); } } |
