Auto merge of #28432 - aochagavia:docs2, r=alexcrichton

Fixes #28431
This commit is contained in:
bors 2015-09-16 19:02:55 +00:00
commit f18c2aaf20
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

@ -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));