Skip to content

Commit

Permalink
Merge pull request #3880 from kadiwa4/revert_3711
Browse files Browse the repository at this point in the history
Revert #3711
  • Loading branch information
chriskrycho committed Apr 8, 2024
2 parents 60c3a5f + 8355b06 commit dacef10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dacef10

Please sign in to comment.