Skip to content

Commit

Permalink
Remove redundant &mut ref mut in doc for Result::as_mut()
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Aug 10, 2016
1 parent 576f766 commit 70e760f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
/// }
/// }
///
Expand Down

0 comments on commit 70e760f

Please sign in to comment.