summaryrefslogtreecommitdiff
path: root/src/lockable.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2025-01-06 22:08:01 -0500
committerBotahamec <botahamec@outlook.com>2025-01-06 22:08:01 -0500
commitd7db61502adf14a6ac6babd04580377e09fe3eaf (patch)
tree13eea4f43d82566eae167e87118b3f0381c7142f /src/lockable.rs
parent5817ce3b69448b3698a575fa8883ecee8a2367e1 (diff)
Fix documentation
Diffstat (limited to 'src/lockable.rs')
-rw-r--r--src/lockable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lockable.rs b/src/lockable.rs
index 7ddc104..70d442a 100644
--- a/src/lockable.rs
+++ b/src/lockable.rs
@@ -151,7 +151,7 @@ pub unsafe trait Sharable: Lockable {
/// # Safety
///
/// All locks given by calling [`Lockable::get_ptrs`] must be locked using
- /// [`RawLock::read`] before calling this function. The locks must not be
+ /// [`RawLock::raw_read`] before calling this function. The locks must not be
/// unlocked until this guard is dropped.
#[must_use]
unsafe fn read_guard(&self) -> Self::ReadGuard<'_>;
@@ -188,7 +188,7 @@ pub trait LockableIntoInner: Lockable {
/// [`Lockable`].
///
/// This is used for types like [`Poisonable`] to access the inner value of a
-/// lock. [`Poisonable::get_mut`] calls [`LockableAsMut::as_mut`] to return a
+/// lock. [`Poisonable::get_mut`] calls [`LockableGetMut::get_mut`] to return a
/// mutable reference of the inner value. This isn't implemented for some
/// `Lockable`s, such as `&[T]`.
///