Skip to content

Commit 4764c16

Browse files
committed
auto merge of #18201 : Gankro/rust/option-what, r=alexcrichton
🐳
2 parents b69cd73 + 01e8ad6 commit 4764c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ impl<T> Option<T> {
245245
/// ```
246246
/// let mut x = Some(2u);
247247
/// match x.as_mut() {
248-
/// Some(&ref mut v) => *v = 42,
248+
/// Some(v) => *v = 42,
249249
/// None => {},
250250
/// }
251251
/// assert_eq!(x, Some(42u));

0 commit comments

Comments
 (0)