Skip to content

Commit

Permalink
Change fold_first to reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgdorf committed Feb 8, 2021
1 parent 68a4024 commit 37e2737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/yul/operations/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub fn sum(vals: Vec<yul::Expression>) -> yul::Expression {
}

vals.into_iter()
.fold_first(|val1, val2| expression! { add([val1], [val2]) })
.reduce(|val1, val2| expression! { add([val1], [val2]) })
.unwrap()
}

Expand Down

0 comments on commit 37e2737

Please sign in to comment.