diff options
| author | Matt Brubeck <mbrubeck@limpet.net> | 2018-02-04 11:57:36 -0800 |
|---|---|---|
| committer | Matt Brubeck <mbrubeck@limpet.net> | 2018-02-04 11:57:36 -0800 |
| commit | f243f9239d2e2e5c0d21aa45f4d8bfd3cdcd3367 (patch) | |
| tree | caae5f5d3bdd5befd97014f66e836a6ba79d744f /src | |
| parent | 0c6091fbd0eee290c651f73be899f221eeab3c05 (diff) | |
| download | rust-f243f9239d2e2e5c0d21aa45f4d8bfd3cdcd3367.tar.gz rust-f243f9239d2e2e5c0d21aa45f4d8bfd3cdcd3367.zip | |
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')
| -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 /// |
