about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/treemap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/treemap.rs b/src/libstd/treemap.rs
index a093351c4a7..a8d343f8098 100644
--- a/src/libstd/treemap.rs
+++ b/src/libstd/treemap.rs
@@ -528,7 +528,7 @@ pub impl<K: TotalOrd, V> TreeNode<K, V> {
 
 pure fn each<K: TotalOrd, V>(node: &r/Option<~TreeNode<K, V>>,
                         f: fn(&(&r/K, &r/V)) -> bool) {
-    do node.iter |x| {
+    for node.each |x| {
         each(&x.left, f);
         if f(&(&x.key, &x.value)) { each(&x.right, f) }
     }
@@ -536,7 +536,7 @@ pure fn each<K: TotalOrd, V>(node: &r/Option<~TreeNode<K, V>>,
 
 pure fn each_reverse<K: TotalOrd, V>(node: &r/Option<~TreeNode<K, V>>,
                                 f: fn(&(&r/K, &r/V)) -> bool) {
-    do node.iter |x| {
+    for node.each |x| {
         each_reverse(&x.right, f);
         if f(&(&x.key, &x.value)) { each_reverse(&x.left, f) }
     }