Skip to content

Commit de001dd

Browse files
committed
Change cont out of loop error to again out of loop
1 parent 05543fd commit de001dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustc/middle/check_loop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) {
3535
}
3636
expr_again {
3737
if !cx.in_loop {
38-
tcx.sess.span_err(e.span, "`cont` outside of loop");
38+
tcx.sess.span_err(e.span, "`again` outside of loop");
3939
}
4040
}
4141
expr_ret(oe) {
@@ -49,4 +49,4 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) {
4949
}
5050
with *visit::default_visitor()
5151
}));
52-
}
52+
}

0 commit comments

Comments
 (0)