Skip to content

Commit b4062ef

Browse files
committed
fix(arc1): index mod should equal thread count
1 parent 2d38163 commit b4062ef

File tree

1 file changed

+1
-1
lines changed
  • exercises/standard_library_types

1 file changed

+1
-1
lines changed

exercises/standard_library_types/arc1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn main() {
2121
let mut sum = 0;
2222
while i < child_numbers.len() {
2323
sum += child_numbers[i];
24-
i += 5;
24+
i += 8;
2525
}
2626
println!("Sum of offset {} is {}", offset, sum);
2727
}));

0 commit comments

Comments
 (0)