Skip to content

Commit 6315221

Browse files
killercuppnkfelix
andauthored
Update src/libcore/option.rs
Co-Authored-By: pnkfelix <[email protected]>
1 parent d5a61c0 commit 6315221

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
@@ -1325,7 +1325,7 @@ impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
13251325
///
13261326
/// let res: Option<Vec<u16>> = items
13271327
/// .iter()
1328-
/// .map(|x| shared += x; x.checked_sub(2))
1328+
/// .map(|x| { shared += x; x.checked_sub(2) })
13291329
/// .collect();
13301330
///
13311331
/// assert_eq!(res, None);

0 commit comments

Comments
 (0)