Fix info about generic impls in AsMut docs
This text was copy-pasted from the `AsRef` docs to `AsMut`, but needed some additional adjustments for correctness.
This commit is contained in:
parent
0c6091fbd0
commit
f243f9239d
@ -141,9 +141,9 @@ pub trait AsRef<T: ?Sized> {
|
|||||||
///
|
///
|
||||||
/// # Generic Implementations
|
/// # Generic Implementations
|
||||||
///
|
///
|
||||||
/// - `AsMut` auto-dereferences if the inner type is a reference or a mutable
|
/// - `AsMut` auto-dereferences if the inner type is a mutable reference
|
||||||
/// reference (e.g.: `foo.as_ref()` will work the same if `foo` has type
|
/// (e.g.: `foo.as_mut()` will work the same if `foo` has type `&mut Foo`
|
||||||
/// `&mut Foo` or `&&mut Foo`)
|
/// or `&mut &mut Foo`)
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user