From 9d928375ffc365d9ae4f4bc9be4a3c08fae47387 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sat, 7 Feb 2026 10:41:37 -0500 Subject: Fix doc links --- src/mutex/mutex.rs | 2 ++ src/poisonable/poisonable.rs | 4 ++++ src/rwlock/rwlock.rs | 4 ++++ 3 files changed, 10 insertions(+) (limited to 'src') diff --git a/src/mutex/mutex.rs b/src/mutex/mutex.rs index 475c3ae..dc374aa 100755 --- a/src/mutex/mutex.rs +++ b/src/mutex/mutex.rs @@ -316,6 +316,8 @@ impl Mutex { /// Err(_) => unreachable!(), /// } /// ``` + /// + /// [`scoped_lock`]: Mutex::scoped_lock pub fn scoped_try_lock<'a, Key: Keyable, Ret>( &'a self, key: Key, diff --git a/src/poisonable/poisonable.rs b/src/poisonable/poisonable.rs index c8225df..dd12cea 100755 --- a/src/poisonable/poisonable.rs +++ b/src/poisonable/poisonable.rs @@ -397,6 +397,8 @@ impl Poisonable { /// Err(_) => unreachable!(), /// } /// ``` + /// + /// [`scoped_lock`]: [`crate::Poisonable::scoped_lock`] pub fn scoped_try_lock<'a, Key: Keyable, R>( &'a self, key: Key, @@ -655,6 +657,8 @@ impl Poisonable { /// Err(_) => unreachable!(), /// } /// ``` + /// + /// [`scoped_read`]: crate::Poisonable::scoped_read pub fn scoped_try_read<'a, Key: Keyable, R>( &'a self, key: Key, diff --git a/src/rwlock/rwlock.rs b/src/rwlock/rwlock.rs index 98ac466..b93d8e2 100755 --- a/src/rwlock/rwlock.rs +++ b/src/rwlock/rwlock.rs @@ -336,6 +336,8 @@ impl RwLock { /// Err(_) => unreachable!(), /// } /// ``` + /// + /// [`scoped_read`]: RwLock::scoped_read pub fn scoped_try_read<'a, Key: Keyable, Ret>( &'a self, key: Key, @@ -454,6 +456,8 @@ impl RwLock { /// Err(_) => unreachable!(), /// } /// ``` + /// + /// [`scoped_write`]: RwLock::scoped_write pub fn scoped_try_write<'a, Key: Keyable, Ret>( &'a self, key: Key, -- cgit v1.2.3