fix the multiple counters test

This commit is contained in:
rail 2020-06-24 11:33:49 +12:00
parent 10d7a18f72
commit 174065fc98

View file

@ -160,12 +160,12 @@ pub fn manual_copy_with_counters(src: &[i32], dst: &mut [i32], dst2: &mut [i32])
}
let mut count = 3;
let mut count = 30;
let mut count2 = 30;
for i in 0..src.len() {
dst[count] = src[i];
dst2[count] = src[i];
count += 1;
dst2[count2] = src[i];
count += 1;
count2 += 1;
}
// make sure parentheses are added properly to bitwise operators, which have lower precedence than