fixed syntax

This commit is contained in:
spectre 2023-12-08 21:40:15 +01:00
parent 86741bfafb
commit 8896610dac
3 changed files with 5 additions and 6 deletions

View file

@ -7,8 +7,8 @@ impl Solution for Day04 {
fn part_1(&self, input: &str) -> Answer {
let lines: Vec<&str> = input.split("\n").collect();
let cards = lines.iter()
.map(|l| l.split_once(": ").
unwrap()
.map(|l| l.split_once(": ")
.unwrap()
.1
.split_once(" | ")
.unwrap())

View file

@ -34,8 +34,7 @@ impl Solution for Day08 {
return Answer::from(steps)
}
}
Answer::Unimplemented
panic!()
}
fn part_2(&self, input: &str) -> Answer {