From 14b538ec5f63a81ccaabbe10e8005f258b540410 Mon Sep 17 00:00:00 2001 From: Sunface Date: Wed, 7 Jun 2023 09:14:35 +0800 Subject: [PATCH] Update src/advance/concurrency-with-threads/sync1.md --- src/advance/concurrency-with-threads/sync1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/advance/concurrency-with-threads/sync1.md b/src/advance/concurrency-with-threads/sync1.md index 168776ba..a37ac58a 100644 --- a/src/advance/concurrency-with-threads/sync1.md +++ b/src/advance/concurrency-with-threads/sync1.md @@ -350,7 +350,7 @@ fn main() { 线程 0 锁住了MUTEX1,接着准备去锁MUTEX2 ! 线程 1 锁住了MUTEX2, 准备去锁MUTEX1 线程 1 获取 MUTEX1 锁的结果: Err("WouldBlock") -线程 0 获取MUTEX2锁的结果: Ok(0) +线程 0 获取 MUTEX2 锁的结果: Ok(0) 死锁没有发生 ```