Rollup merge of #63530 - ehuss:typo-statemement, r=centril

Fix typo in error message.
This commit is contained in:
Mazdak Farrokhzad 2019-08-14 04:18:57 +02:00 committed by GitHub
commit a8bb3756b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1203,7 +1203,7 @@ impl<'a> Parser<'a> {
if self.eat_keyword(kw::Else) || !cond.returns() {
let sp = self.sess.source_map().next_point(lo);
let mut err = self.diagnostic()
.struct_span_err(sp, "missing condition for `if` statemement");
.struct_span_err(sp, "missing condition for `if` expression");
err.span_label(sp, "expected if condition here");
return Err(err)
}

View file

@ -1,10 +1,10 @@
error: missing condition for `if` statemement
error: missing condition for `if` expression
--> $DIR/issue-13483.rs:3:14
|
LL | } else if {
| ^ expected if condition here
error: missing condition for `if` statemement
error: missing condition for `if` expression
--> $DIR/issue-13483.rs:10:14
|
LL | } else if {