summaryrefslogtreecommitdiffstats
path: root/src/2020/8/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-01 15:27:06 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-01 15:27:06 -0500
commita40f68453cf4b59f166d70e769ce8fd6ceeeb831 (patch)
tree59c1c5ebe2ae0f1e3f1d53d44d557c1572701d61 /src/2020/8/mod.rs
parent5f557387543e6d61f315aa82305f5f3f5e8a61ae (diff)
downloadadvent-of-code-a40f68453cf4b59f166d70e769ce8fd6ceeeb831.tar.gz
advent-of-code-a40f68453cf4b59f166d70e769ce8fd6ceeeb831.zip
move data files
Diffstat (limited to 'src/2020/8/mod.rs')
-rw-r--r--src/2020/8/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2020/8/mod.rs b/src/2020/8/mod.rs
index 0e5d686..c5bf835 100644
--- a/src/2020/8/mod.rs
+++ b/src/2020/8/mod.rs
@@ -44,7 +44,7 @@ impl std::str::FromStr for Op {
}
pub fn part1() -> anyhow::Result<i64> {
- let input = crate::util::read_file_str("data/8.txt")?;
+ let input = crate::util::read_file_str("data/2020/8.txt")?;
let opcodes = parse(&input)?;
let (acc, success) = run(&opcodes)?;
if success {
@@ -54,7 +54,7 @@ pub fn part1() -> anyhow::Result<i64> {
}
pub fn part2() -> anyhow::Result<i64> {
- let input = crate::util::read_file_str("data/8.txt")?;
+ let input = crate::util::read_file_str("data/2020/8.txt")?;
let opcodes = parse(&input)?;
for i in 0..opcodes.len() {
match opcodes[i].ty {