Skip to content

Commit

Permalink
Fix broken links in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed Nov 17, 2023
1 parent 42f0785 commit 3338841
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/barrier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions src/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ impl<T: ?Sized> Mutex<T> {
///
/// # 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.
Expand Down Expand Up @@ -233,8 +233,8 @@ impl<T: ?Sized> Mutex<T> {
///
/// # 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.
Expand Down
8 changes: 4 additions & 4 deletions src/rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ impl<T: ?Sized> RwLock<T> {
///
/// # 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.
Expand Down Expand Up @@ -320,8 +320,8 @@ impl<T: ?Sized> RwLock<T> {
///
/// # 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.
Expand Down
4 changes: 2 additions & 2 deletions src/semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3338841

Please sign in to comment.