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 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 = "*")]