mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
Remove redundant &mut ref mut in doc for Result::as_mut()
This commit is contained in:
@@ -402,8 +402,8 @@ pub fn as_ref(&self) -> 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,
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user