From 333884115766b8c35841685f3da2e5851957c4d0 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Thu, 16 Nov 2023 21:35:39 -0500 Subject: [PATCH] Fix broken links in docs --- src/barrier.rs | 4 ++-- src/mutex.rs | 8 ++++---- src/rwlock.rs | 8 ++++---- src/semaphore.rs | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/barrier.rs b/src/barrier.rs index 84b0742..f488929 100644 --- a/src/barrier.rs +++ b/src/barrier.rs @@ -96,8 +96,8 @@ impl Barrier { /// /// # Blocking /// - /// Rather than using asynchronous waiting, like the [`wait`] method, this method will - /// block the current thread until the wait is complete. + /// Rather than using asynchronous waiting, like the [`wait`][`Barrier::wait`] method, + /// this method will block the current thread until the wait is complete. /// /// This method should not be used in an asynchronous context. It is intended to be /// used in a way that a barrier can be used in both asynchronous and synchronous contexts. diff --git a/src/mutex.rs b/src/mutex.rs index 384e1c2..5b7fcbd 100644 --- a/src/mutex.rs +++ b/src/mutex.rs @@ -118,8 +118,8 @@ impl Mutex { /// /// # Blocking /// - /// Rather than using asynchronous waiting, like the [`lock`] method, this method will - /// block the current thread until the lock is acquired. + /// Rather than using asynchronous waiting, like the [`lock`][Mutex::lock] method, + /// this method will block the current thread until the lock is acquired. /// /// This method should not be used in an asynchronous context. It is intended to be /// used in a way that a mutex can be used in both asynchronous and synchronous contexts. @@ -233,8 +233,8 @@ impl Mutex { /// /// # Blocking /// - /// Rather than using asynchronous waiting, like the [`lock_arc`] method, this method will - /// block the current thread until the lock is acquired. + /// Rather than using asynchronous waiting, like the [`lock_arc`][Mutex::lock_arc] method, + /// this method will block the current thread until the lock is acquired. /// /// This method should not be used in an asynchronous context. It is intended to be /// used in a way that a mutex can be used in both asynchronous and synchronous contexts. diff --git a/src/rwlock.rs b/src/rwlock.rs index 0dca9f2..d8ace90 100644 --- a/src/rwlock.rs +++ b/src/rwlock.rs @@ -216,8 +216,8 @@ impl RwLock { /// /// # Blocking /// - /// Rather than using asynchronous waiting, like the [`read`] method, this method will - /// block the current thread until the read lock is acquired. + /// Rather than using asynchronous waiting, like the [`read`][`RwLock::read`] method, + /// this method will block the current thread until the read lock is acquired. /// /// This method should not be used in an asynchronous context. It is intended to be /// used in a way that a lock can be used in both asynchronous and synchronous contexts. @@ -320,8 +320,8 @@ impl RwLock { /// /// # Blocking /// - /// Rather than using asynchronous waiting, like the [`upgradable_read`] method, this method will - /// block the current thread until the read lock is acquired. + /// Rather than using asynchronous waiting, like the [`upgradable_read`][`RwLock::upgradable_read`] + /// method, this method will block the current thread until the read lock is acquired. /// /// This method should not be used in an asynchronous context. It is intended to be /// used in a way that a lock can be used in both asynchronous and synchronous contexts. diff --git a/src/semaphore.rs b/src/semaphore.rs index 6d5169d..af41cae 100644 --- a/src/semaphore.rs +++ b/src/semaphore.rs @@ -98,8 +98,8 @@ impl Semaphore { /// /// # Blocking /// - /// Rather than using asynchronous waiting, like the [`acquire`] method, this method will - /// block the current thread until the permit is acquired. + /// Rather than using asynchronous waiting, like the [`acquire`][Semaphore::acquire] method, + /// this method will block the current thread until the permit is acquired. /// /// This method should not be used in an asynchronous context. It is intended to be /// used in a way that a semaphore can be used in both asynchronous and synchronous contexts.