From 86d5cb4110d7944e2ea1850ff3522372400a04e8 Mon Sep 17 00:00:00 2001 From: danielhenrymantilla Date: Tue, 22 Jan 2019 11:30:59 +0100 Subject: Fixed Deref coercion explanation for DerefMut using shared references --- src/libcore/ops/deref.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore') diff --git a/src/libcore/ops/deref.rs b/src/libcore/ops/deref.rs index 075c3a084f4..bec3a155c18 100644 --- a/src/libcore/ops/deref.rs +++ b/src/libcore/ops/deref.rs @@ -109,7 +109,7 @@ impl Deref for &mut T { /// then: /// /// * In mutable contexts, `*x` on non-pointer types is equivalent to -/// `*Deref::deref(&x)`. +/// `*DerefMut::deref_mut(&mut x)`. /// * Values of type `&mut T` are coerced to values of type `&mut U` /// * `T` implicitly implements all the (mutable) methods of the type `U`. /// -- cgit 1.4.1-3-g733a5