Skip to content

Commit 71c365c

Browse files
committed
Auto merge of #57826 - danielhenrymantilla:master, r=Centril
Fixed Deref coercion explanation for DerefMut using shared references
2 parents 01af120 + 86d5cb4 commit 71c365c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ops/deref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<T: ?Sized> Deref for &mut T {
109109
/// then:
110110
///
111111
/// * In mutable contexts, `*x` on non-pointer types is equivalent to
112-
/// `*Deref::deref(&x)`.
112+
/// `*DerefMut::deref_mut(&mut x)`.
113113
/// * Values of type `&mut T` are coerced to values of type `&mut U`
114114
/// * `T` implicitly implements all the (mutable) methods of the type `U`.
115115
///

0 commit comments

Comments
 (0)