diff --git a/src/libextra/bitv.rs b/src/libextra/bitv.rs index 0a5a7d11c6cd..9f71dc8a1af5 100644 --- a/src/libextra/bitv.rs +++ b/src/libextra/bitv.rs @@ -493,7 +493,7 @@ impl Bitv { * * Both the bitvector and vector must have the same length. */ - pub fn eq_vec(&self, v: ~[bool]) -> bool { + pub fn eq_vec(&self, v: &[bool]) -> bool { assert_eq!(self.nbits, v.len()); let mut i = 0; while i < self.nbits {