about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Morgan <me@chrismorgan.info>2013-07-12 23:17:59 +1000
committerChris Morgan <me@chrismorgan.info>2013-07-12 23:17:59 +1000
commit5b656cfbcb723efcd4d9b4f73b1e51ddcbc3e593 (patch)
treecb08304dfea54bbf4e0b54c1e8cb904ec67fa5ae
parentb8e95c46024754b49bdeb24b338e4b24e7c0ef23 (diff)
Replace owned with borrowed pointer.
As pointed out by cmr, there's no need for it to be owned there.
That was also in the original scope of #7711.
-rw-r--r--src/libextra/bitv.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/bitv.rs b/src/libextra/bitv.rs
index 0a5a7d11c6c..9f71dc8a1af 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 {