]> git.lizzy.rs Git - rust.git/commitdiff
Add a comment on args_have_many_closure()
authortopecongiro <seuchida@gmail.com>
Thu, 2 Nov 2017 23:57:38 +0000 (08:57 +0900)
committertopecongiro <seuchida@gmail.com>
Thu, 2 Nov 2017 23:57:38 +0000 (08:57 +0900)
src/expr.rs

index 89cb29881bd3da74acd1de1bfeb7f266d5bf071b..09b9a4e622e1914ccb1a9c7c250ba263148ba22f 100644 (file)
@@ -2350,6 +2350,7 @@ fn rewrite_last_arg_with_overflow<'a, T>(
     }
 }
 
+/// Returns true if the given vector of arguments has more than one `ast::ExprKind::Closure`.
 fn args_have_many_closure<T>(args: &[&T]) -> bool
 where
     T: ToExpr,