Skip to content

Commit 529b9e0

Browse files
authored
Merge pull request #3711 from miketon/main
Update loop to Result: 10
2 parents d1770c8 + a80a425 commit 529b9e0

File tree

1 file changed

+1
-1
lines changed
  • listings/ch16-fearless-concurrency/listing-16-15/src

1 file changed

+1
-1
lines changed

listings/ch16-fearless-concurrency/listing-16-15/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn main() {
55
let counter = Arc::new(Mutex::new(0));
66
let mut handles = vec![];
77

8-
for _ in 0..10 {
8+
for _ in 0..=10 {
99
let counter = Arc::clone(&counter);
1010
let handle = thread::spawn(move || {
1111
let mut num = counter.lock().unwrap();

0 commit comments

Comments
 (0)