2019: intcode: rename method to get last output
This commit is contained in:
parent
83fa28b21d
commit
d02364731d
4 changed files with 7 additions and 15 deletions
|
|
@ -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"))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue