Change cont out of loop error to again out of loop

This commit is contained in:
Zack Corr 2012-07-14 01:24:07 +10:00
parent 05543fd04d
commit de001dd61c

View File

@ -35,7 +35,7 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) {
}
expr_again {
if !cx.in_loop {
tcx.sess.span_err(e.span, "`cont` outside of loop");
tcx.sess.span_err(e.span, "`again` outside of loop");
}
}
expr_ret(oe) {
@ -49,4 +49,4 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) {
}
with *visit::default_visitor()
}));
}
}