From b4062ef6993e80dac107c4093ea85166ad3ee0fa Mon Sep 17 00:00:00 2001 From: seeplusplus Date: Sun, 16 Aug 2020 20:55:50 -0400 Subject: [PATCH] fix(arc1): index mod should equal thread count --- exercises/standard_library_types/arc1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/standard_library_types/arc1.rs b/exercises/standard_library_types/arc1.rs index 07932c63..4ad649f1 100644 --- a/exercises/standard_library_types/arc1.rs +++ b/exercises/standard_library_types/arc1.rs @@ -21,7 +21,7 @@ fn main() { let mut sum = 0; while i < child_numbers.len() { sum += child_numbers[i]; - i += 5; + i += 8; } println!("Sum of offset {} is {}", offset, sum); }));