File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -294,11 +294,11 @@ impl<T: ?Sized> Mutex<T> {
294
294
/// # Errors
295
295
///
296
296
/// If another user of this mutex panicked while holding the mutex, then
297
- /// this call will return the error [`Poisoned`] if the mutex would
297
+ /// this call will return the [`Poisoned`] error if the mutex would
298
298
/// otherwise be acquired.
299
299
///
300
300
/// If the mutex could not be acquired because it is already locked, then
301
- /// this call will return [`WouldBlock`].
301
+ /// this call will return the [`WouldBlock`] error .
302
302
///
303
303
/// [`Poisoned`]: TryLockError::Poisoned
304
304
/// [`WouldBlock`]: TryLockError::WouldBlock
Original file line number Diff line number Diff line change @@ -199,12 +199,12 @@ impl<T: ?Sized> RwLock<T> {
199
199
///
200
200
/// # Errors
201
201
///
202
- /// This function will return the error [`Poisoned`] if the RwLock is poisoned.
202
+ /// This function will return the [`Poisoned`] error if the RwLock is poisoned.
203
203
/// An RwLock is poisoned whenever a writer panics while holding an exclusive
204
204
/// lock. `Poisoned` will only be returned if the lock would have otherwise been
205
205
/// acquired.
206
206
///
207
- /// This function will return the error [`WouldBlock`] if the RwLock could not
207
+ /// This function will return the [`WouldBlock`] error if the RwLock could not
208
208
/// be acquired because it was already locked exclusively.
209
209
///
210
210
/// [`Poisoned`]: TryLockError::Poisoned
@@ -287,12 +287,12 @@ impl<T: ?Sized> RwLock<T> {
287
287
///
288
288
/// # Errors
289
289
///
290
- /// This function will return the error [`Poisoned`] if the RwLock is
290
+ /// This function will return the [`Poisoned`] error if the RwLock is
291
291
/// poisoned. An RwLock is poisoned whenever a writer panics while holding
292
292
/// an exclusive lock. `Poisoned` will only be returned if the lock would have
293
293
/// otherwise been acquired.
294
294
///
295
- /// This function will return the error [`WouldBlock`] if the RwLock could not
295
+ /// This function will return the [`WouldBlock`] error if the RwLock could not
296
296
/// be acquired because it was already locked exclusively.
297
297
///
298
298
/// [`Poisoned`]: TryLockError::Poisoned
You can’t perform that action at this time.
0 commit comments