mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-23 03:38:09 -05:00
Merge pull request #498 from seeplusplus/main
fix(arc1): index mod should equal thread count
This commit is contained in:
commit
66ec916b3d
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ fn main() {
|
||||||
let mut sum = 0;
|
let mut sum = 0;
|
||||||
while i < child_numbers.len() {
|
while i < child_numbers.len() {
|
||||||
sum += child_numbers[i];
|
sum += child_numbers[i];
|
||||||
i += 5;
|
i += 8;
|
||||||
}
|
}
|
||||||
println!("Sum of offset {} is {}", offset, sum);
|
println!("Sum of offset {} is {}", offset, sum);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue