From 462fc2d9aab8f0cba680caec344e4c388e9901b1 Mon Sep 17 00:00:00 2001 From: Mica White Date: Mon, 11 Mar 2024 16:33:26 -0400 Subject: Documentation --- src/rwlock/read_guard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rwlock/read_guard.rs') diff --git a/src/rwlock/read_guard.rs b/src/rwlock/read_guard.rs index e967420..d8db9b9 100644 --- a/src/rwlock/read_guard.rs +++ b/src/rwlock/read_guard.rs @@ -14,7 +14,7 @@ impl<'a, T: ?Sized + 'a, R: RawRwLock> Deref for RwLockReadRef<'a, T, R> { // safety: this is the only type that can use `value`, and there's // a reference to this type, so there cannot be any mutable // references to this value. - unsafe { &*self.0.value.get() } + unsafe { &*self.0.data.get() } } } -- cgit v1.2.3