fixed formatting

This commit is contained in:
Thorn Avery 2022-12-02 14:34:42 +11:00
parent d55f21183e
commit a846d59e2a
4 changed files with 319 additions and 4 deletions

View file

@ -11,7 +11,7 @@ fn solution(x: i32) -> i32 {
let n: i32 = line.trim().parse().expect("invalid input");
total += n;
};
};
}
return totals.iter().sum();
}
@ -23,7 +23,7 @@ fn add_to_total(totals: &mut Vec<i32>, total: i32) {
*n = i;
i = tmp;
};
};
}
}
pub fn solutionA() -> i32 {
@ -33,4 +33,3 @@ pub fn solutionA() -> i32 {
pub fn solutionB() -> i32 {
return solution(3);
}

View file

@ -7,4 +7,3 @@ pub fn solutionA() -> i32 {
pub fn solutionB() -> i32 {
return 0;
}