Merge pull request #2900 from z0w0/cont-err

Change cont out of loop error to again out of loop
This commit is contained in:
Tim Chevalier 2012-07-13 09:36:15 -07:00
commit 1fe0d8d7d7

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()
}));
}
}