Fixed Deref coercion explanation for DerefMut using shared references

This commit is contained in:
danielhenrymantilla 2019-01-22 11:30:59 +01:00 committed by GitHub
parent 8e9774ffcf
commit 86d5cb4110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.
///