diff --git a/lock_api/src/mutex.rs b/lock_api/src/mutex.rs index ea4b1426..09177024 100644 --- a/lock_api/src/mutex.rs +++ b/lock_api/src/mutex.rs @@ -349,7 +349,7 @@ impl Mutex { } impl Mutex { - /// Forcibly unlocks the mutex using a fair unlock procotol. + /// Forcibly unlocks the mutex using a fair unlock protocol. /// /// This is useful when combined with `mem::forget` to hold a lock without /// the need to maintain a `MutexGuard` object alive, for example when diff --git a/lock_api/src/rwlock.rs b/lock_api/src/rwlock.rs index 67790b6c..b93f8ed8 100644 --- a/lock_api/src/rwlock.rs +++ b/lock_api/src/rwlock.rs @@ -694,7 +694,7 @@ impl RwLock { } impl RwLock { - /// Forcibly unlocks a read lock using a fair unlock procotol. + /// Forcibly unlocks a read lock using a fair unlock protocol. /// /// This is useful when combined with `mem::forget` to hold a lock without /// the need to maintain a `RwLockReadGuard` object alive, for example when @@ -710,7 +710,7 @@ impl RwLock { self.raw.unlock_shared_fair(); } - /// Forcibly unlocks a write lock using a fair unlock procotol. + /// Forcibly unlocks a write lock using a fair unlock protocol. /// /// This is useful when combined with `mem::forget` to hold a lock without /// the need to maintain a `RwLockWriteGuard` object alive, for example when