Fix crazy-pants match in Option docs

This commit is contained in:
Alexis Beingessner 2014-10-20 21:18:59 -04:00
parent b6e0d3a5bf
commit 01e8ad6c38
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ impl<T> Option<T> {
/// ```
/// let mut x = Some(2u);
/// match x.as_mut() {
/// Some(&ref mut v) => *v = 42,
/// Some(v) => *v = 42,
/// None => {},
/// }
/// assert_eq!(x, Some(42u));