prepare day 6

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-12-05 04:41:07 -06:00
parent 71d8241b43
commit d5828a5b0b
2 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,7 @@ use std::path::PathBuf;
static AOC_PUZZLE_INPUT_CACHE: &str = "aoc_puzzle_cache";
pub async fn get_puzzle_input(day: i8) -> Result<String> {
pub async fn get_puzzle_input(day: u8) -> Result<String> {
let file_name = format!("day_{}", day);
let cache_path = PathBuf::from(AOC_PUZZLE_INPUT_CACHE).join(file_name);
if cache_path.exists() {