Skip to content

Commit

Permalink
Docs fix
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Sep 23, 2023
1 parent d4bea42 commit 0976c75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/barrier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
6 changes: 3 additions & 3 deletions src/rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl<T: ?Sized> RwLock<T> {
/// 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.
///
Expand Down Expand Up @@ -323,7 +323,7 @@ impl<T: ?Sized> RwLock<T> {
/// 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.
///
Expand Down Expand Up @@ -475,7 +475,7 @@ impl<T: ?Sized> RwLock<T> {
/// 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.
///
Expand Down

0 comments on commit 0976c75

Please sign in to comment.