Change cont out of loop error to again out of loop
This commit is contained in:
parent
05543fd04d
commit
de001dd61c
@ -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()
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user