From 8355b06c7773636a9c4c24a06c18a97dd42d6a70 Mon Sep 17 00:00:00 2001 From: Kalle Wachsmuth Date: Mon, 8 Apr 2024 22:02:32 +0200 Subject: [PATCH] Revert "Merge pull request #3711 from miketon/main" This reverts commit 529b9e0d1a7cbf20a6f90caa0e3fbbd431680d48, reversing changes made to d1770c8bdf9f44cd69fda4a55fd72b009653cf6b. --- listings/ch16-fearless-concurrency/listing-16-15/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listings/ch16-fearless-concurrency/listing-16-15/src/main.rs b/listings/ch16-fearless-concurrency/listing-16-15/src/main.rs index 6e849ff117..30247dd52f 100644 --- a/listings/ch16-fearless-concurrency/listing-16-15/src/main.rs +++ b/listings/ch16-fearless-concurrency/listing-16-15/src/main.rs @@ -5,7 +5,7 @@ fn main() { let counter = Arc::new(Mutex::new(0)); let mut handles = vec![]; - for _ in 0..=10 { + for _ in 0..10 { let counter = Arc::clone(&counter); let handle = thread::spawn(move || { let mut num = counter.lock().unwrap();