From 70e760fc2fb5cff325d0942e2f3a7aeeed0522e8 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 10 Aug 2016 08:14:57 +0200 Subject: [PATCH] Remove redundant `&mut ref mut` in doc for Result::as_mut() --- src/libcore/result.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 94c6c636ce8fc..c7ca70fc1622d 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -402,8 +402,8 @@ impl Result { /// ``` /// fn mutate(r: &mut Result) { /// 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, /// } /// } ///