Skip to content

Commit da4687b

Browse files
committed
Link to Mutex poisoning docs from RwLock docs
1 parent 5b2c61e commit da4687b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/std/src/sync/poison/rwlock.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ use crate::sys::sync as sys;
4646
///
4747
/// # Poisoning
4848
///
49-
/// An `RwLock`, like [`Mutex`], will usually become poisoned on a panic. Note,
49+
/// An `RwLock`, like [`Mutex`], will [usually] become poisoned on a panic. Note,
5050
/// however, that an `RwLock` may only be poisoned if a panic occurs while it is
5151
/// locked exclusively (write mode). If a panic occurs in any reader, then the
5252
/// lock will not be poisoned.
5353
///
54+
/// [usually]: super::Mutex#poisoning
55+
///
5456
/// # Examples
5557
///
5658
/// ```

0 commit comments

Comments
 (0)