about summary refs log tree commit diff
path: root/src/libstd/smallintmap.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-01-23 14:59:00 -0800
committerNiko Matsakis <niko@alum.mit.edu>2012-01-23 19:06:33 -0800
commit5e13d19cc07a1e8fbf478d21cabbd7b9f80e3b54 (patch)
treec1fc2dd89c651efa1daa4e7d63c5b82b2a5f4bd2 /src/libstd/smallintmap.rs
parent04351a84ca342f4580e40b9c195b5403b864090b (diff)
downloadrust-5e13d19cc07a1e8fbf478d21cabbd7b9f80e3b54.tar.gz
rust-5e13d19cc07a1e8fbf478d21cabbd7b9f80e3b54.zip
s/block()/fn()/g
Diffstat (limited to 'src/libstd/smallintmap.rs')
-rw-r--r--src/libstd/smallintmap.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs
index 36c9e1281c2..dada53f355b 100644
--- a/src/libstd/smallintmap.rs
+++ b/src/libstd/smallintmap.rs
@@ -110,7 +110,7 @@ impl <V: copy> of map::map<uint, V> for smallintmap<V> {
     fn get(&&key: uint) -> V { get(self, key) }
     fn find(&&key: uint) -> option::t<V> { find(self, key) }
     fn rehash() { fail }
-    fn items(it: block(&&uint, V)) {
+    fn items(it: fn(&&uint, V)) {
         let idx = 0u;
         for item in self.v {
             alt item {
@@ -122,14 +122,14 @@ impl <V: copy> of map::map<uint, V> for smallintmap<V> {
             idx += 1u;
         }
     }
-    fn keys(it: block(&&uint)) {
+    fn keys(it: fn(&&uint)) {
         let idx = 0u;
         for item in self.v {
             if item != none { it(idx); }
             idx += 1u;
         }
     }
-    fn values(it: block(V)) {
+    fn values(it: fn(V)) {
         for item in self.v {
             alt item { some(elt) { it(elt); } _ {} }
         }