]> git.lizzy.rs Git - rust.git/commitdiff
Remove redundant `&mut ref mut` in doc for Result::as_mut()
authorGeorg Brandl <georg@python.org>
Wed, 10 Aug 2016 06:14:57 +0000 (08:14 +0200)
committerGeorg Brandl <georg@python.org>
Wed, 10 Aug 2016 06:15:57 +0000 (08:15 +0200)
src/libcore/result.rs

index 94c6c636ce8fce6469f374dbfdb730f60051ea3b..c7ca70fc1622d8ea2d811d5a81d2c54bd9104e5e 100644 (file)
@@ -402,8 +402,8 @@ pub fn as_ref(&self) -> 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,
     ///     }
     /// }
     ///