Skip to content

Commit 5b656cf

Browse files
committed
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.
1 parent b8e95c4 commit 5b656cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libextra/bitv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ impl Bitv {
493493
*
494494
* Both the bitvector and vector must have the same length.
495495
*/
496-
pub fn eq_vec(&self, v: ~[bool]) -> bool {
496+
pub fn eq_vec(&self, v: &[bool]) -> bool {
497497
assert_eq!(self.nbits, v.len());
498498
let mut i = 0;
499499
while i < self.nbits {

0 commit comments

Comments
 (0)