Update exercises/standard_library_types/arc1.rs

Co-authored-by: marisa <mokou@fastmail.com>
This commit is contained in:
Brandon Macer 2021-04-20 08:24:01 -04:00 committed by GitHub
parent a070baa076
commit 037f916663
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@
// The second thread (offset 1), will sum 1, 9, 17, ...
// The third thread (offset 2), will sum 2, 10, 18, ...
// ...
// The eighth thread {offset 7}, will sum 7, 15, 23, ...
// The eighth thread (offset 7), will sum 7, 15, 23, ...
// Because we are using threads, our values need to be thread-safe. Therefore,
// we are using Arc. We need to make a change in each of the two TODOs.