1
0
Fork 0

remove println debugging

main
Andrew Coleman 2023-12-08 13:44:26 -05:00
parent df1e26462d
commit 62099a8bfc
3 changed files with 1 additions and 4 deletions

View File

@ -55,7 +55,6 @@ fn letter_digit_at(line: &str, index: usize) -> Option<u32> {
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<u32> {
}
}
let num = first_digit * 10 + second_digit;
println!("line {} num {}", line, num);
Some(num)
} else {
None

View File

@ -70,7 +70,7 @@ fn parse(input: &str) -> Vec<Game> {
"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 });

View File

@ -84,7 +84,6 @@ fn associate_parts(input: &str) -> PartList {
}
}
}
// println!("{:?}", result);
result
}