diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-06-30 16:19:07 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-07-01 19:19:32 -0700 |
| commit | d1fc2b5995fdef69fe1dbdbba3703398c0aa547b (patch) | |
| tree | b6d14fd0e920512a29c64a671cc2a5bb90132abb /src/libstd/smallintmap.rs | |
| parent | 13a8f545388929a07af110a950441e6a1b88473a (diff) | |
Convert to new closure syntax
Diffstat (limited to 'src/libstd/smallintmap.rs')
| -rw-r--r-- | src/libstd/smallintmap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index a7df6df281a..6583d97908d 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -58,7 +58,7 @@ fn contains_key<T: copy>(self: smallintmap<T>, key: uint) -> bool { impl <V: copy> of map::map<uint, V> for smallintmap<V> { fn size() -> uint { let mut sz = 0u; - for self.v.each {|item| + for self.v.each |item| { alt item { some(_) { sz += 1u; } _ {} } } sz @@ -102,7 +102,7 @@ impl <V: copy> of map::map<uint, V> for smallintmap<V> { } } fn each_value(it: fn(V) -> bool) { - self.each({|_i, v| it(v)}); + self.each(|_i, v| it(v)); } } |
