about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/expr.rs
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2019-08-13 11:21:09 -0700
committerEric Huss <eric@huss.org>2019-08-13 11:21:09 -0700
commitea1a9a0e2ba1da31e2de524bf9b0a7af6b02daff (patch)
treea464ab6e60afdabd28e6ab8b0978612120798f14 /src/libsyntax/parse/parser/expr.rs
parent60960a260f7b5c695fd0717311d72ce62dd4eb43 (diff)
downloadrust-ea1a9a0e2ba1da31e2de524bf9b0a7af6b02daff.tar.gz
rust-ea1a9a0e2ba1da31e2de524bf9b0a7af6b02daff.zip
Fix typo in error message.
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
-rw-r--r--src/libsyntax/parse/parser/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/expr.rs b/src/libsyntax/parse/parser/expr.rs
index 4432c1329cb..5f04012d710 100644
--- a/src/libsyntax/parse/parser/expr.rs
+++ b/src/libsyntax/parse/parser/expr.rs
@@ -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)
         }