libsyntax: Change all uses of &fn to ||.

This commit is contained in:
Patrick Walton
2013-11-19 12:21:21 -08:00
parent 18a30aff45
commit 492677ec1e
16 changed files with 139 additions and 111 deletions

View File

@@ -381,7 +381,7 @@ pub trait ast_fold {
}
}
fn map_exprs(&self, f: &fn(@Expr) -> @Expr, es: &[@Expr]) -> ~[@Expr] {
fn map_exprs(&self, f: |@Expr| -> @Expr, es: &[@Expr]) -> ~[@Expr] {
es.map(|x| f(*x))
}