summaryrefslogtreecommitdiff
path: root/2018
diff options
context:
space:
mode:
Diffstat (limited to '2018')
-rw-r--r--2018/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/2018/src/main.rs b/2018/src/main.rs
index d727d35..70e7a79 100644
--- a/2018/src/main.rs
+++ b/2018/src/main.rs
@@ -33,7 +33,7 @@ fn day_switch<T: BufRead>(day: i32, reader: T) -> io::Result<(String, String)> {
}
fn file_for_day(day: i32) -> io::Result<BufReader<File>> {
- match File::open(format!("../input/{}.txt", day)) {
+ match File::open(format!("input/{}.txt", day)) {
Ok(f) => Ok(BufReader::new(f)),
Err(_) => Err(Error::new(ErrorKind::Other, format!("No input file for day {}", day)))
}