Change cont out of loop error to again out of loop
This commit is contained in:
parent
05543fd04d
commit
de001dd61c
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue