]> git.lizzy.rs Git - rust.git/commitdiff
Change cont out of loop error to again out of loop
authorZack Corr <zackcorr95@gmail.com>
Fri, 13 Jul 2012 15:24:07 +0000 (01:24 +1000)
committerZack Corr <zackcorr95@gmail.com>
Fri, 13 Jul 2012 15:24:33 +0000 (01:24 +1000)
src/rustc/middle/check_loop.rs

index e8e2c57a8b227bae4f85b0f19adfd1e04ba1a19f..524e88fc49ec09c9f54dd9823ccafc0a4e44de56 100644 (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()
     }));
-}
\ No newline at end of file
+}