mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
chore: typo in TryLockError for RwLock::try_write (#5160)
Fixes an incoherent sentence describing when RwLock::try_write (and related) would error with TryLockError.
This commit is contained in:
parent
26791a62bc
commit
74a29be607
@ -200,8 +200,8 @@ unsafe impl<'a, T> Send for MappedMutexGuard<'a, T> where T: ?Sized + Send + 'a
|
||||
/// `RwLock::try_read` operation will only fail if the lock is currently held
|
||||
/// by an exclusive writer.
|
||||
///
|
||||
/// `RwLock::try_write` operation will if lock is held by any reader or by an
|
||||
/// exclusive writer.
|
||||
/// `RwLock::try_write` operation will only fail if the lock is currently held
|
||||
/// by any reader or by an exclusive writer.
|
||||
///
|
||||
/// [`Mutex::try_lock`]: Mutex::try_lock
|
||||
/// [`RwLock::try_read`]: fn@super::RwLock::try_read
|
||||
|
Loading…
x
Reference in New Issue
Block a user