diff options
| author | kennytm <kennytm@gmail.com> | 2018-02-06 02:13:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-06 02:13:54 +0800 |
| commit | e2f6e134c12e5d0b2ac348c10499eafa5e4ea302 (patch) | |
| tree | 9c1ade57fbead717926f46e2772a5ad14fddf337 /src/libcore | |
| parent | daecd152715b2f38482779211513e03c1745d25b (diff) | |
| parent | f243f9239d2e2e5c0d21aa45f4d8bfd3cdcd3367 (diff) | |
| download | rust-e2f6e134c12e5d0b2ac348c10499eafa5e4ea302.tar.gz rust-e2f6e134c12e5d0b2ac348c10499eafa5e4ea302.zip | |
Rollup merge of #48003 - mbrubeck:docs, r=steveklabnik
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.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/convert.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index e815d72d366..d3a83dc795c 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -141,9 +141,9 @@ pub trait AsRef<T: ?Sized> { /// /// # Generic Implementations /// -/// - `AsMut` auto-dereferences if the inner type is a reference or a mutable -/// reference (e.g.: `foo.as_ref()` will work the same if `foo` has type -/// `&mut Foo` or `&&mut Foo`) +/// - `AsMut` auto-dereferences if the inner type is a mutable reference +/// (e.g.: `foo.as_mut()` will work the same if `foo` has type `&mut Foo` +/// or `&mut &mut Foo`) /// /// # Examples /// |
