mirror of
https://github.com/SrIzan10/adventofcode.git
synced 2026-06-06 00:46:56 +00:00
fix: some fixes
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
input.txt
|
||||
2025/debug
|
||||
2025/target
|
||||
2025/inputs/*.txt
|
||||
|
||||
# These are backup files generated by rustfmt
|
||||
**/*.rs.bk
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
test input
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user