Skip to content

Commit

Permalink
Update src/libcore/option.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: pnkfelix <[email protected]>
  • Loading branch information
killercup and pnkfelix authored Mar 25, 2019
1 parent d5a61c0 commit 6315221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
///
/// let res: Option<Vec<u16>> = items
/// .iter()
/// .map(|x| shared += x; x.checked_sub(2))
/// .map(|x| { shared += x; x.checked_sub(2) })
/// .collect();
///
/// assert_eq!(res, None);
Expand Down

0 comments on commit 6315221

Please sign in to comment.