Update src/advance/concurrency-with-threads/sync1.md

pull/1219/head
Sunface 1 year ago committed by GitHub
parent 2331fe1f68
commit 47384f29d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -329,7 +329,7 @@ fn main() {
println!("线程 {} 锁住了MUTEX2, 准备去锁MUTEX1", i_thread);
sleep(Duration::from_millis(10));
let guard = MUTEX1.try_lock();
println!("线程 {} 获取MUTEX1锁的结果: {:?}", i_thread, guard);
println!("线程 {} 获取 MUTEX1 锁的结果: {:?}", i_thread, guard);
}
}
}));

Loading…
Cancel
Save