Clean up day 2 a bit
continuous-integration/drone/push Build is passing Details

pull/1/head
Julius 2021-12-02 08:53:07 +01:00
parent 2b884fab65
commit 443632378e
Signed by: j00lz
GPG Key ID: AF241B0AA237BBA2
1 changed files with 2 additions and 6 deletions

View File

@ -37,12 +37,8 @@ impl Day for Day02 {
fw += n;
depth += aim * n;
}
Instruction::Down(n) => {
aim += n;
}
Instruction::Up(n) => {
aim -= n;
}
Instruction::Down(n) => aim += n,
Instruction::Up(n) => aim -= n,
}
}
format!("{}", depth * fw)