fix: some fixes

This commit is contained in:
2025-12-01 00:08:17 +01:00
parent cfad49c24e
commit 60449b4522
3 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
input.txt
2025/debug
2025/target
2025/inputs/*.txt
# These are backup files generated by rustfmt
**/*.rs.bk

View File

@@ -1 +0,0 @@
test input

View File

@@ -1,6 +1,6 @@
use std::fs;
pub fn read_input(day: u8) -> String {
let path = format!("inputs/day{:02}.txt", day);
let path = format!("inputs/{:02}.txt", day);
fs::read_to_string(&path).unwrap_or_else(|_| panic!("Could not read file: {}", path))
}