]> git.lizzy.rs Git - rust.git/commitdiff
address Niko's comments
authorJorge Aparicio <japaricious@gmail.com>
Mon, 5 Jan 2015 17:07:49 +0000 (12:07 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Mon, 5 Jan 2015 22:22:17 +0000 (17:22 -0500)
src/librustc_typeck/check/closure.rs

index 7671ad36971ac768c4d4ecaa48e8bc2d936cc88f..9945e264bfc2a4ae3493f4acb1d14f53c8f4d4b0 100644 (file)
@@ -45,14 +45,14 @@ pub fn check_expr_closure<'a,'tcx>(fcx: &FnCtxt<'a,'tcx>,
             // that, otherwise we'll fall back to boxed closures.
             match expected_sig_and_kind {
                 None => { // don't have information about the kind, request explicit annotation
-                    // HACK We still need to typeck the body, so assume `FnMut` kind just for that
+                    // NB We still need to typeck the body, so assume `FnMut` kind just for that
                     let kind = ty::FnMutUnboxedClosureKind;
 
                     check_unboxed_closure(fcx, expr, kind, decl, body, None);
 
                     fcx.ccx.tcx.sess.span_err(
                         expr.span,
-                        "Can't infer the \"kind\" of the closure, explicitly annotate it. e.g. \
+                        "can't infer the \"kind\" of the closure, explicitly annotate it. e.g. \
                         `|&:| {}`");
                 },
                 Some((sig, kind)) => {