diff options
Diffstat (limited to 'src/libcore/iter-trait/dvec.rs')
| -rw-r--r-- | src/libcore/iter-trait/dvec.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/iter-trait/dvec.rs b/src/libcore/iter-trait/dvec.rs index 0f51df7b545..f03f1a154e4 100644 --- a/src/libcore/iter-trait/dvec.rs +++ b/src/libcore/iter-trait/dvec.rs @@ -1,12 +1,12 @@ #[allow(non_camel_case_types)] -type IMPL_T<A> = dvec::DVec<A>; +pub type IMPL_T<A> = dvec::DVec<A>; /** * Iterates through the current contents. * * Attempts to access this dvec during iteration will fail. */ -pure fn EACH<A>(self: IMPL_T<A>, f: fn(v: &A) -> bool) { +pub pure fn EACH<A>(self: &IMPL_T<A>, f: fn(v: &A) -> bool) { unsafe { do self.swap |v| { v.each(f); @@ -15,6 +15,6 @@ pure fn EACH<A>(self: IMPL_T<A>, f: fn(v: &A) -> bool) { } } -pure fn SIZE_HINT<A>(self: IMPL_T<A>) -> Option<uint> { +pub pure fn SIZE_HINT<A>(self: &IMPL_T<A>) -> Option<uint> { Some(self.len()) } |
