Fix typo in fold.

This commit is contained in:
Graydon Hoare 2011-01-20 15:54:19 -08:00
parent c9d2eceb45
commit 61379af1a9

View File

@ -517,7 +517,7 @@ fn fold_expr[ENV](&ENV env, ast_fold[ENV] fld, &@expr e) -> @expr {
auto ddecl = fold_decl(env_, fld, decl);
auto sseq = fold_expr(env_, fld, seq);
auto bbody = fold_block(env_, fld, body);
ret fld.fold_expr_for(env_, e.span, ddecl, seq, bbody, t);
ret fld.fold_expr_for(env_, e.span, ddecl, sseq, bbody, t);
}
case (ast.expr_while(?cnd, ?body, ?t)) {