about summary refs log tree commit diff
path: root/src/libcore/vec.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-09-25 17:39:22 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-09-25 22:13:05 -0700
commite19e628b19af2921fc29818009496bc430640f76 (patch)
tree9e4d4d161b7de4b33cd4335dbe8355fa93bd8463 /src/libcore/vec.rs
parent473a866733b085419b41b2d2f2708a49c079f89e (diff)
Demode iter-trait
Diffstat (limited to 'src/libcore/vec.rs')
-rw-r--r--src/libcore/vec.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs
index e3df52b3cd6..7c5f242e8ba 100644
--- a/src/libcore/vec.rs
+++ b/src/libcore/vec.rs
@@ -1873,7 +1873,7 @@ impl<A> &[A]: iter::BaseIter<A> {
 }
 
 impl<A> &[A]: iter::ExtendedIter<A> {
-    pure fn eachi(blk: fn(uint, v: &A) -> bool) { iter::eachi(self, blk) }
+    pure fn eachi(blk: fn(uint, v: &A) -> bool) { iter::eachi(&self, blk) }
     pure fn all(blk: fn(A) -> bool) -> bool { iter::all(self, blk) }
     pure fn any(blk: fn(A) -> bool) -> bool { iter::any(self, blk) }
     pure fn foldl<B>(+b0: B, blk: fn(B, A) -> B) -> B {
@@ -1885,8 +1885,8 @@ impl<A> &[A]: iter::ExtendedIter<A> {
 }
 
 impl<A: Eq> &[A]: iter::EqIter<A> {
-    pure fn contains(x: A) -> bool { iter::contains(self, x) }
-    pure fn count(x: A) -> uint { iter::count(self, x) }
+    pure fn contains(x: &A) -> bool { iter::contains(self, x) }
+    pure fn count(x: &A) -> uint { iter::count(self, x) }
 }
 
 impl<A: Copy> &[A]: iter::CopyableIter<A> {