Skip to content

Commit

Permalink
Merge pull request #429 from waywardmonkeys/fix-typos
Browse files Browse the repository at this point in the history
Fix typos.
  • Loading branch information
Amanieu authored Mar 12, 2024
2 parents 3dcdfea + 5de2398 commit cd7bda0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lock_api/src/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ impl<R: RawMutex, T: ?Sized> Mutex<R, T> {
}

impl<R: RawMutexFair, T: ?Sized> Mutex<R, T> {
/// 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
Expand Down
4 changes: 2 additions & 2 deletions lock_api/src/rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ impl<R: RawRwLock, T: ?Sized> RwLock<R, T> {
}

impl<R: RawRwLockFair, T: ?Sized> RwLock<R, T> {
/// 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
Expand All @@ -710,7 +710,7 @@ impl<R: RawRwLockFair, T: ?Sized> RwLock<R, T> {
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
Expand Down

0 comments on commit cd7bda0

Please sign in to comment.