From: code-cp <106009933+code-cp@users.noreply.github.com> Date: Sun, 28 Jul 2024 10:46:20 +0000 (+0800) Subject: Update 06_async_aware_primitives.md (#122) X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=59833f2a5559a60beec3c44ad50b8c03058b23e4;p=rust_exercises.git Update 06_async_aware_primitives.md (#122) Fix a typo --- diff --git a/book/src/08_futures/06_async_aware_primitives.md b/book/src/08_futures/06_async_aware_primitives.md index af52682..9360647 100644 --- a/book/src/08_futures/06_async_aware_primitives.md +++ b/book/src/08_futures/06_async_aware_primitives.md @@ -52,7 +52,7 @@ Yields to runtime Tries to acquire lock ``` -We have a deadlock. Task B we'll never manage to acquire the lock, because the lock +We have a deadlock. Task B will never manage to acquire the lock, because the lock is currently held by task A, which has yielded to the runtime before releasing the lock and won't be scheduled again because the runtime cannot preempt task B.