2019: intcode: rename method to get last output

This commit is contained in:
Antoine Martin 2019-12-09 16:42:54 +01:00
parent 83fa28b21d
commit d02364731d
4 changed files with 7 additions and 15 deletions

View file

@ -21,7 +21,7 @@ fn part1(input: &str) -> Result<i64> {
intcode.add_input(1);
intcode.run()?;
intcode
.get_day05_output()
.get_last_output()
.ok_or_else(|| err!("intcode gave no output"))
}
@ -30,7 +30,7 @@ fn part2(input: &str) -> Result<i64> {
intcode.add_input(5);
intcode.run()?;
intcode
.get_day05_output()
.get_last_output()
.ok_or_else(|| err!("intcode gave no output"))
}