summaryrefslogtreecommitdiff
path: root/2018
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-12-09 22:33:00 +0100
committertomsmeding <tom.smeding@gmail.com>2018-12-09 22:33:00 +0100
commit37c05d3af71ee436348dc6e7ce7ec9d7e34369de (patch)
treec0d90e2f9461bbdf257b0b3a32f793fd8dcf61a6 /2018
parent46b203f87525e7a4ba360cc5b79e2e1155682e27 (diff)
Run from crate root, not src/
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)))
}