Skip to content

Commit f18c2aa

Browse files
committed
Auto merge of #28432 - aochagavia:docs2, r=alexcrichton
Fixes #28431
2 parents 8dfb890 + 804f024 commit f18c2aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libcore/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ impl<T> Option<T> {
541541
/// ```
542542
/// let mut x = Some(4);
543543
/// match x.iter_mut().next() {
544-
/// Some(&mut ref mut v) => *v = 42,
544+
/// Some(v) => *v = 42,
545545
/// None => {},
546546
/// }
547547
/// assert_eq!(x, Some(42));

src/libcore/result.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ impl<T, E> Result<T, E> {
538538
/// ```
539539
/// let mut x: Result<u32, &str> = Ok(7);
540540
/// match x.iter_mut().next() {
541-
/// Some(&mut ref mut x) => *x = 40,
541+
/// Some(v) => *v = 40,
542542
/// None => {},
543543
/// }
544544
/// assert_eq!(x, Ok(40));

0 commit comments

Comments
 (0)