Take &Pat

This commit is contained in:
Seo Sanghyeon
2013-11-25 23:37:03 +09:00
parent cd7a9b7234
commit eb5cbfebfd
2 changed files with 7 additions and 7 deletions

View File

@@ -636,7 +636,7 @@ pub fn is_item_impl(item: @ast::item) -> bool {
}
}
pub fn walk_pat(pat: @Pat, it: |@Pat| -> bool) -> bool {
pub fn walk_pat(pat: &Pat, it: |&Pat| -> bool) -> bool {
if !it(pat) {
return false;
}