Skip to content

Commit 70e760f

Browse files
committed
Remove redundant &mut ref mut in doc for Result::as_mut()
1 parent 576f766 commit 70e760f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/result.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ impl<T, E> Result<T, E> {
402402
/// ```
403403
/// fn mutate(r: &mut Result<i32, i32>) {
404404
/// match r.as_mut() {
405-
/// Ok(&mut ref mut v) => *v = 42,
406-
/// Err(&mut ref mut e) => *e = 0,
405+
/// Ok(v) => *v = 42,
406+
/// Err(e) => *e = 0,
407407
/// }
408408
/// }
409409
///

0 commit comments

Comments
 (0)