diff --git a/2023/day-5/src/part1.rs b/2023/day-5/src/part1.rs index 131bf50..48743d3 100644 --- a/2023/day-5/src/part1.rs +++ b/2023/day-5/src/part1.rs @@ -74,6 +74,13 @@ impl ItemMap { .expect("always") } } +/// part1 of day 5 of AOC 2023 +/// +/// # Arguments +/// - input the puszzle input +/// +/// # Panics +/// panics whenever the input isn't parsable #[must_use] pub fn part1(input: &str) -> String { diff --git a/2023/day-5/src/part2.rs b/2023/day-5/src/part2.rs index 46bfa34..aad62f7 100644 --- a/2023/day-5/src/part2.rs +++ b/2023/day-5/src/part2.rs @@ -138,6 +138,13 @@ impl ItemMap { } } +/// part2 of day 5 of AOC 2023 +/// +/// # Arguments +/// - input the puszzle input +/// +/// # Panics +/// panics whenever the input isn't parsable #[must_use] pub fn part2(input: &str) -> String { let (_input, (mut to_process, maps)) = parse_input(input).expect("aoc always has input"); diff --git a/2023/day-6/src/part1.rs b/2023/day-6/src/part1.rs index 9b28afd..a303413 100644 --- a/2023/day-6/src/part1.rs +++ b/2023/day-6/src/part1.rs @@ -9,6 +9,13 @@ use nom::{ IResult, }; +/// part6 of day 1 of AOC 2023 +/// +/// # Arguments +/// - input the puszzle input +/// +/// # Panics +/// panics whenever the input isn't parsable #[must_use] pub fn part1(input: &str) -> String { let (_, races) = parse_input(input).expect("input expected"); diff --git a/2023/day-6/src/part2.rs b/2023/day-6/src/part2.rs index 919a56b..2a848d6 100644 --- a/2023/day-6/src/part2.rs +++ b/2023/day-6/src/part2.rs @@ -9,6 +9,13 @@ use nom::{ IResult, }; +/// part2 of day 2 of AOC 2023 +/// +/// # Arguments +/// - input the puszzle input +/// +/// # Panics +/// panics whenever the input isn't parsable #[must_use] pub fn part2(input: &str) -> String { let (_, race) = parse_input(input).expect("input expected");