Fixed Deref coercion explanation for DerefMut using shared references
This commit is contained in:
parent
8e9774ffcf
commit
86d5cb4110
1 changed files with 1 additions and 1 deletions
|
|
@ -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`.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue