diff options
| author | Tim Chevalier <catamorphism@gmail.com> | 2012-07-13 09:36:15 -0700 |
|---|---|---|
| committer | Tim Chevalier <catamorphism@gmail.com> | 2012-07-13 09:36:15 -0700 |
| commit | 1fe0d8d7d70c78ea69647f765dd1bb780b5e6d86 (patch) | |
| tree | 9fe567cc4b134fc1e4fdf39f2a79627b2610c317 | |
| parent | 05543fd04dfb3f63b453a331e239ceb1a9a219f9 (diff) | |
| parent | de001dd61ca123e6cd75d9789af5b5bbacd5cdbb (diff) | |
| download | rust-1fe0d8d7d70c78ea69647f765dd1bb780b5e6d86.tar.gz rust-1fe0d8d7d70c78ea69647f765dd1bb780b5e6d86.zip | |
Merge pull request #2900 from z0w0/cont-err
Change cont out of loop error to again out of loop
| -rw-r--r-- | src/rustc/middle/check_loop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustc/middle/check_loop.rs b/src/rustc/middle/check_loop.rs index e8e2c57a8b2..524e88fc49e 100644 --- a/src/rustc/middle/check_loop.rs +++ b/src/rustc/middle/check_loop.rs @@ -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() })); -} \ No newline at end of file +} |
