From 7f8260da56fdb6913d23c310ea9922f701ce93be Mon Sep 17 00:00:00 2001 From: Antonio Ribeiro Date: Fri, 30 Dec 2022 15:59:28 +0000 Subject: [PATCH] Fix listing 1.4 line numbering --- ch1/ch1-race/src/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/ch1/ch1-race/src/main.rs b/ch1/ch1-race/src/main.rs index 5d43735d..04fbf36e 100644 --- a/ch1/ch1-race/src/main.rs +++ b/ch1/ch1-race/src/main.rs @@ -1,10 +1,8 @@ use std::thread; // <1> - fn main() { let mut data = 100; thread::spawn(|| { data = 500; }); // <2> thread::spawn(|| { data = 1000; }); // <2> - println!("{}", data); } \ No newline at end of file