Skip to content

Commit ea1a9a0

Browse files
committed
Fix typo in error message.
1 parent 60960a2 commit ea1a9a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libsyntax/parse/parser/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ impl<'a> Parser<'a> {
11991199
if self.eat_keyword(kw::Else) || !cond.returns() {
12001200
let sp = self.sess.source_map().next_point(lo);
12011201
let mut err = self.diagnostic()
1202-
.struct_span_err(sp, "missing condition for `if` statemement");
1202+
.struct_span_err(sp, "missing condition for `if` statement");
12031203
err.span_label(sp, "expected if condition here");
12041204
return Err(err)
12051205
}

src/test/ui/issues/issue-13483.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error: missing condition for `if` statemement
1+
error: missing condition for `if` statement
22
--> $DIR/issue-13483.rs:3:14
33
|
44
LL | } else if {
55
| ^ expected if condition here
66

7-
error: missing condition for `if` statemement
7+
error: missing condition for `if` statement
88
--> $DIR/issue-13483.rs:10:14
99
|
1010
LL | } else if {

0 commit comments

Comments
 (0)