test day 1

This commit is contained in:
nora 2023-12-03 13:14:28 +01:00
parent 7be7e7c549
commit 13ac9a70ce
9 changed files with 107 additions and 18 deletions

View file

@ -1,4 +1,4 @@
pub fn part2(input: &str) {
pub fn part2(input: &str) -> u64 {
let sum = input
.lines()
.map(|line| {
@ -39,5 +39,5 @@ pub fn part2(input: &str) {
})
.sum::<u64>();
println!("part2: {sum}");
}
sum
}