diff options
| author | bors <bors@rust-lang.org> | 2015-09-16 19:02:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-16 19:02:55 +0000 |
| commit | f18c2aaf203e4e428c46c651b34c7a3e4ca91572 (patch) | |
| tree | 147fc5831f29b599850e530eecd60a35406a7c4e /src/libcore | |
| parent | 8dfb89067a57949e9b74f6ed4a409d728c1240a5 (diff) | |
| parent | 804f024edab8b85f276a9a3fbfa23215a4688328 (diff) | |
| download | rust-f18c2aaf203e4e428c46c651b34c7a3e4ca91572.tar.gz rust-f18c2aaf203e4e428c46c651b34c7a3e4ca91572.zip | |
Auto merge of #28432 - aochagavia:docs2, r=alexcrichton
Fixes #28431
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/option.rs | 2 | ||||
| -rw-r--r-- | src/libcore/result.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs index a539ef81db8..d1bb65d2290 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -541,7 +541,7 @@ impl<T> Option<T> { /// ``` /// let mut x = Some(4); /// match x.iter_mut().next() { - /// Some(&mut ref mut v) => *v = 42, + /// Some(v) => *v = 42, /// None => {}, /// } /// assert_eq!(x, Some(42)); diff --git a/src/libcore/result.rs b/src/libcore/result.rs index e9a67196751..fe0fdb5baa5 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -538,7 +538,7 @@ impl<T, E> Result<T, E> { /// ``` /// let mut x: Result<u32, &str> = Ok(7); /// match x.iter_mut().next() { - /// Some(&mut ref mut x) => *x = 40, + /// Some(v) => *v = 40, /// None => {}, /// } /// assert_eq!(x, Ok(40)); |
