Merge pull request #2900 from z0w0/cont-err
Change cont out of loop error to again out of loop
This commit is contained in:
commit
1fe0d8d7d7
@ -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