Remove redundant &mut ref mut in doc for Result::as_mut()
This commit is contained in:
parent
576f766594
commit
70e760fc2f
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue