about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/ops/deref.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ops/deref.rs b/library/core/src/ops/deref.rs
index fb4ec83bc28..d68932402a4 100644
--- a/library/core/src/ops/deref.rs
+++ b/library/core/src/ops/deref.rs
@@ -164,7 +164,7 @@ impl<T: ?Sized> const Deref for &mut T {
 ///
 /// let mut x = DerefMutExample { value: 'a' };
 /// *x = 'b';
-/// assert_eq!('b', *x);
+/// assert_eq!('b', x.value);
 /// ```
 #[lang = "deref_mut"]
 #[doc(alias = "*")]