Skip to content

Commit

Permalink
Comments cleaned up and removed
Browse files Browse the repository at this point in the history
  • Loading branch information
miketon committed Jul 19, 2023
1 parent dc16e35 commit a80a425
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions listings/ch16-fearless-concurrency/listing-16-15/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ fn main() {
let counter = Arc::new(Mutex::new(0));
let mut handles = vec![];

// The chapters accompanying text states that the print should be :
// Result: 10
// But the current code yields :
// Result: 9
// An update to this should resolve the drift between text and code :
// 1..=10 - is a range that is inclusive of 1 and inclusive of 10
for _ in 0..=10 {
let counter = Arc::clone(&counter);
let handle = thread::spawn(move || {
Expand Down

0 comments on commit a80a425

Please sign in to comment.