diff --git a/2024/day-1/src/part1.rs b/2024/day-1/src/part1.rs index afb8e9d..47a42d2 100644 --- a/2024/day-1/src/part1.rs +++ b/2024/day-1/src/part1.rs @@ -11,6 +11,11 @@ pub enum Day1Part1Error { ParseError, } +/// Day-1 Part 1 for 2024 advent of code +/// Problem can be found here: +/// +/// # Errors +/// - `ParseError` there was an issue with the parser pub fn part1(input: &str) -> Result { let (_, (mut col1, mut col2)) = parse_input(input) .map_err(|x| Report::from(x.to_owned())) diff --git a/2024/day-1/src/part2.rs b/2024/day-1/src/part2.rs index 1664e94..9603ea6 100644 --- a/2024/day-1/src/part2.rs +++ b/2024/day-1/src/part2.rs @@ -11,10 +11,13 @@ use thiserror::Error; pub enum Day1Part2Error { #[error("Problem parsing Day 1")] ParseError, - #[error("Catastophic error")] - FatalError, } +/// Day-1 Part 2 for 2024 advent of code +/// Problem can be found here: +/// +/// # Errors +/// - `ParseError` there was an issue with the parser pub fn part2(input: &str) -> Result { let (_, (col1, col2)) = parse_input(input) .map_err(|x| Report::from(x.to_owned()))