about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-08-10 08:14:57 +0200
committerGeorg Brandl <georg@python.org>2016-08-10 08:15:57 +0200
commit70e760fc2fb5cff325d0942e2f3a7aeeed0522e8 (patch)
treec65d5df124a81ad07be29e0e5e95e0fc422cb85f /src/libcore
parent576f7665942414cb95239f8cbec4b654f231f4aa (diff)
downloadrust-70e760fc2fb5cff325d0942e2f3a7aeeed0522e8.tar.gz
rust-70e760fc2fb5cff325d0942e2f3a7aeeed0522e8.zip
Remove redundant `&mut ref mut` in doc for Result::as_mut()
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/result.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs
index 94c6c636ce8..c7ca70fc162 100644
--- a/src/libcore/result.rs
+++ b/src/libcore/result.rs
@@ -402,8 +402,8 @@ impl<T, E> Result<T, E> {
     /// ```
     /// fn mutate(r: &mut Result<i32, i32>) {
     ///     match r.as_mut() {
-    ///         Ok(&mut ref mut v) => *v = 42,
-    ///         Err(&mut ref mut e) => *e = 0,
+    ///         Ok(v) => *v = 42,
+    ///         Err(e) => *e = 0,
     ///     }
     /// }
     ///