From e51eb8aa98e7609490fa674f408db32fd51caa70 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Sun, 11 Aug 2024 10:04:50 -0700 Subject: [PATCH] docs(maitake-sync): fix`RwLock` doctest imports --- maitake-sync/src/blocking/rwlock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maitake-sync/src/blocking/rwlock.rs b/maitake-sync/src/blocking/rwlock.rs index dc4bac24..bd21957e 100644 --- a/maitake-sync/src/blocking/rwlock.rs +++ b/maitake-sync/src/blocking/rwlock.rs @@ -186,7 +186,7 @@ impl RwLock { /// # Examples /// /// ``` - /// use maitake_sync::spin::RwLock; + /// use maitake_sync::blocking::RwLock; /// /// let lock = RwLock::new(5); /// # drop(lock); @@ -327,7 +327,7 @@ impl RwLock { /// # 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); /// ```