Skip to content

Commit f243f92

Browse files
committed
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.
1 parent 0c6091f commit f243f92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/libcore/convert.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ pub trait AsRef<T: ?Sized> {
141141
///
142142
/// # Generic Implementations
143143
///
144-
/// - `AsMut` auto-dereferences if the inner type is a reference or a mutable
145-
/// reference (e.g.: `foo.as_ref()` will work the same if `foo` has type
146-
/// `&mut Foo` or `&&mut Foo`)
144+
/// - `AsMut` auto-dereferences if the inner type is a mutable reference
145+
/// (e.g.: `foo.as_mut()` will work the same if `foo` has type `&mut Foo`
146+
/// or `&mut &mut Foo`)
147147
///
148148
/// # Examples
149149
///

0 commit comments

Comments
 (0)