Skip to content

Commit

Permalink
Rename sum -> _sum.
Browse files Browse the repository at this point in the history
Signed-off-by: OGINO Masanori <[email protected]>
  • Loading branch information
omasanori authored and thestinger committed Aug 3, 2013
1 parent afaca4c commit 6829397
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libextra/bitv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1638,9 +1638,9 @@ mod tests {
fn bench_btv_small_iter(b: &mut BenchHarness) {
let bitv = Bitv::new(uint::bits, false);
do b.iter {
let mut sum = 0;
let mut _sum = 0;
foreach pres in bitv.iter() {
sum += pres as uint;
_sum += pres as uint;
}
}
}
Expand All @@ -1649,9 +1649,9 @@ mod tests {
fn bench_bitv_big_iter(b: &mut BenchHarness) {
let bitv = Bitv::new(BENCH_BITS, false);
do b.iter {
let mut sum = 0;
let mut _sum = 0;
foreach pres in bitv.iter() {
sum += pres as uint;
_sum += pres as uint;
}
}
}
Expand All @@ -1661,9 +1661,9 @@ mod tests {
let bitv = BitvSet::from_bitv(from_fn(BENCH_BITS,
|idx| {idx % 3 == 0}));
do b.iter {
let mut sum = 0;
let mut _sum = 0;
foreach idx in bitv.iter() {
sum += idx;
_sum += idx;
}
}
}
Expand Down

0 comments on commit 6829397

Please sign in to comment.