add clarifying comment on where to_delete comes from

This commit is contained in:
David 2022-12-07 22:18:08 -05:00
parent 5426357cd7
commit 0cb9b68971
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ fn part_two() {
if let Ok(lines) = read_lines("./inputs/input") { if let Ok(lines) = read_lines("./inputs/input") {
let mut stack: Vec<u32> = vec![0]; let mut stack: Vec<u32> = vec![0];
let space_to_free = 30000000 - (70000000 - 49192532); // size of all files, precomputed let space_to_free = 30000000 - (70000000 - 49192532); // size of all files, precomputed
let mut to_delete = 70000000; let mut to_delete = 70000000; // arbitrarily large
for line in lines { for line in lines {
if let Ok(command) = line { if let Ok(command) = line {
match command.as_str() { match command.as_str() {