Fix typo in error message.

This commit is contained in:
Eric Huss 2019-08-13 11:21:09 -07:00
parent 60960a260f
commit ea1a9a0e2b
2 changed files with 3 additions and 3 deletions

View file

@ -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)
}