Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos. #429

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading