about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2018-02-04 11:57:36 -0800
committerMatt Brubeck <mbrubeck@limpet.net>2018-02-04 11:57:36 -0800
commitf243f9239d2e2e5c0d21aa45f4d8bfd3cdcd3367 (patch)
treecaae5f5d3bdd5befd97014f66e836a6ba79d744f /src
parent0c6091fbd0eee290c651f73be899f221eeab3c05 (diff)
downloadrust-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.rs6
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
 ///