diff --git a/src/librustc/middle/check_loop.rs b/src/librustc/middle/check_loop.rs index fb12f97c50cb0..cbd1d3cd9ad81 100644 --- a/src/librustc/middle/check_loop.rs +++ b/src/librustc/middle/check_loop.rs @@ -52,7 +52,7 @@ pub fn check_crate(tcx: ty::ctxt, crate: &Crate) { } expr_again(_) => { if !cx.in_loop { - tcx.sess.span_err(e.span, "`again` outside of loop"); + tcx.sess.span_err(e.span, "`loop` outside of loop"); } } expr_ret(oe) => {