Skip to content

Commit

Permalink
Division memory fix
Browse files Browse the repository at this point in the history
  • Loading branch information
importly committed Mar 23, 2021
1 parent dbb87a4 commit 1920d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/division.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ pub fn num_gen(range: i32) -> i32 {
}

pub fn operation(t: Vec<i32>) -> i32 {
let n = t[1..].iter().fold(t[0], |acc, x| acc / x);
let n = t[1..].iter().fold(t[0], |acc, &x| acc / x);
return n;
}

0 comments on commit 1920d92

Please sign in to comment.