Skip to content

Commit

Permalink
Fix typo in error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Aug 13, 2019
1 parent 60960a2 commit ea1a9a0
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
Expand Up @@ -1199,7 +1199,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` statement");
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
@@ -1,10 +1,10 @@
error: missing condition for `if` statemement
error: missing condition for `if` statement
--> $DIR/issue-13483.rs:3:14
|
LL | } else if {
| ^ expected if condition here

error: missing condition for `if` statemement
error: missing condition for `if` statement
--> $DIR/issue-13483.rs:10:14
|
LL | } else if {
Expand Down

0 comments on commit ea1a9a0

Please sign in to comment.