diff --git a/2023/src/day01.rs b/2023/src/day01.rs index 76806e9..2ee7616 100644 --- a/2023/src/day01.rs +++ b/2023/src/day01.rs @@ -55,7 +55,6 @@ fn letter_digit_at(line: &str, index: usize) -> Option { let index2 = index + d.len(); let substring: &str = line[index..index2].as_ref(); if *d == substring { - // println!("compare {} dindex {} d {}", index, dindex, d); return Some(dindex as u32); } } @@ -90,7 +89,6 @@ fn sub_letters_for_digits(input: &str) -> Vec { } } let num = first_digit * 10 + second_digit; - println!("line {} num {}", line, num); Some(num) } else { None diff --git a/2023/src/day02.rs b/2023/src/day02.rs index 64f6a3e..d87ed3d 100644 --- a/2023/src/day02.rs +++ b/2023/src/day02.rs @@ -70,7 +70,7 @@ fn parse(input: &str) -> Vec { "red" => red = count, "green" => green = count, "blue" => blue = count, - _ => println!("invalid color! {}", dice_parts[0]), + _ => panic!("invalid color! {}", dice_parts[0]), } } turns.push(Turn { red, green, blue }); diff --git a/2023/src/day03.rs b/2023/src/day03.rs index eb78864..bafe835 100644 --- a/2023/src/day03.rs +++ b/2023/src/day03.rs @@ -84,7 +84,6 @@ fn associate_parts(input: &str) -> PartList { } } } - // println!("{:?}", result); result }