From e9fbdea09a3e440fca87e764f7c015544d4695bf Mon Sep 17 00:00:00 2001 From: nannxnann <51177225+nannxnann@users.noreply.github.com> Date: Sun, 24 Jul 2022 21:12:38 +0800 Subject: [PATCH] fix typo in linux-sync-4.md From "function will `acct` like " => function will `act` like Maybe another typo or not? --- SyncPrim/linux-sync-4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SyncPrim/linux-sync-4.md b/SyncPrim/linux-sync-4.md index 558486c..99adff0 100644 --- a/SyncPrim/linux-sync-4.md +++ b/SyncPrim/linux-sync-4.md @@ -303,7 +303,7 @@ static bool mutex_optimistic_spin(struct mutex *lock, #endif ``` -In all of these cases, the `__mutex_lock_common` function will acct like a `semaphore`. We try to acquire a lock again because the owner of a lock might already release a lock before this time: +In all of these cases, the `__mutex_lock_common` function will act like a `semaphore`. We try to acquire a lock again because the owner of a lock might already release a lock before this time: ```C if (!mutex_is_locked(lock) &&