From 0976c7593967fed1b177a0a5359209d99c138f1f Mon Sep 17 00:00:00 2001 From: John Nunley Date: Fri, 22 Sep 2023 18:53:34 -0700 Subject: [PATCH] Docs fix Signed-off-by: John Nunley --- src/barrier.rs | 2 +- src/rwlock.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/barrier.rs b/src/barrier.rs index b578737..a87c4f9 100644 --- a/src/barrier.rs +++ b/src/barrier.rs @@ -99,7 +99,7 @@ impl Barrier { /// Rather than using asynchronous waiting, like the [`wait`] method, this method will /// block the current thread until the wait is complete. /// - /// This method should not be used in a synchronous context. It is intended to be + /// 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. /// Calling this method in an `async` function or block may result in a deadlock. /// diff --git a/src/rwlock.rs b/src/rwlock.rs index 9a7d106..73fa11f 100644 --- a/src/rwlock.rs +++ b/src/rwlock.rs @@ -219,7 +219,7 @@ impl RwLock { /// Rather than using asynchronous waiting, like the [`read`] method, this method will /// block the current thread until the read lock is acquired. /// - /// This method should not be used in a synchronous context. It is intended to be + /// 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. /// Calling this method in an `async` function or block may result in a deadlock. /// @@ -323,7 +323,7 @@ impl RwLock { /// Rather than using asynchronous waiting, like the [`upgradable_read`] method, this method will /// block the current thread until the read lock is acquired. /// - /// This method should not be used in a synchronous context. It is intended to be + /// 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. /// Calling this method in an `async` function or block may result in a deadlock. /// @@ -475,7 +475,7 @@ impl RwLock { /// Rather than using asynchronous waiting, like the [`write`] method, this method will /// block the current thread until the write lock is acquired. /// - /// This method should not be used in a synchronous context. It is intended to be + /// 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. /// Calling this method in an `async` function or block may result in a deadlock. ///