Commit 797076a6 authored by Jonathan Klimt's avatar Jonathan Klimt

Merged two lines

parent 611c84a0
......@@ -43,9 +43,7 @@ fn part1() -> Result<(i64,i64), Error> {
fn different_chars(s1: &String, s2: &String) -> usize{
assert_eq!(s1.len(), s2.len());
let iter = s1.chars().zip(s2.chars());
iter.filter(|(c1, c2)| c1 != c2).count()
s1.chars().zip(s2.chars()).filter(|(c1, c2)| c1 != c2).count()
fn part2() -> Result<String, Error> {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment