Skip to content

Commit 01e8ad6

Browse files
committed
Fix crazy-pants match in Option docs
1 parent b6e0d3a commit 01e8ad6

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)