about summary refs log tree commit diff
diff options
context:
space:
mode:
authordanielhenrymantilla <danielhenrymantilla@users.noreply.github.com>2019-01-22 11:30:59 +0100
committerGitHub <noreply@github.com>2019-01-22 11:30:59 +0100
commit86d5cb4110d7944e2ea1850ff3522372400a04e8 (patch)
tree8c8495a06dc86d35a804d57781d9e19fb07149e8
parent8e9774ffcf892c85d2e29030c17af1c246e6aa73 (diff)
downloadrust-86d5cb4110d7944e2ea1850ff3522372400a04e8.tar.gz
rust-86d5cb4110d7944e2ea1850ff3522372400a04e8.zip
Fixed Deref coercion explanation for DerefMut using shared references
-rw-r--r--src/libcore/ops/deref.rs2
1 files changed, 1 insertions, 1 deletions
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<T: ?Sized> 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`.
 ///