Skip to content

Commit

Permalink
docs(maitake-sync): fixRwLock doctest imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Aug 11, 2024
1 parent 1f2d92d commit e51eb8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maitake-sync/src/blocking/rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl<T> RwLock<T> {
/// # Examples
///
/// ```
/// use maitake_sync::spin::RwLock;
/// use maitake_sync::blocking::RwLock;
///
/// let lock = RwLock::new(5);
/// # drop(lock);
Expand Down Expand Up @@ -327,7 +327,7 @@ impl<T: ?Sized, Lock: RawRwLock> RwLock<T, Lock> {
/// # Examples
///
/// ```
/// let mut lock = maitake_sync::spin::RwLock::new(0);
/// let mut lock = maitake_sync::blocking::RwLock::new(0);
/// *lock.get_mut() = 10;
/// assert_eq!(*lock.read(), 10);
/// ```
Expand Down

0 comments on commit e51eb8a

Please sign in to comment.