Remove redundant &mut ref mut in doc for Result::as_mut()

This commit is contained in:
Georg Brandl 2016-08-10 08:14:57 +02:00
parent 576f766594
commit 70e760fc2f

View file

@ -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,
/// }
/// }
///