Skip to content

Commit b640523

Browse files
committed
Revert "used sum instead of fold."
This reverts commit 15aafd5
1 parent 15aafd5 commit b640523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2208,7 +2208,7 @@ pub trait Itertools: Iterator {
22082208
/// assert_eq!(
22092209
/// data.into_iter()
22102210
/// .into_group_map_by(|x| x.0)
2211-
/// .map(|(key, values)| (key, values.into_iter().sum()))
2211+
/// .map(|(key, values)| (key, values.into_iter().fold(0,|acc, (_,v)| acc + v )))
22122212
/// .collect::<HashMap<u32,u32>>()[&0], 30)
22132213
/// ```
22142214
#[cfg(feature = "use_std")]

0 commit comments

Comments
 (0)