Skip to content

Commit

Permalink
Rollup merge of #63530 - ehuss:typo-statemement, r=centril
Browse files Browse the repository at this point in the history
Fix typo in error message.
  • Loading branch information
Centril committed Aug 14, 2019
2 parents 92e5508 + 643ddfa commit a8bb375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/issues/issue-13483.stderr
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit a8bb375

Please sign in to comment.