Skip to content

Commit

Permalink
Day 17: small fix
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Hesmans <[email protected]>
  • Loading branch information
bhesmans committed Dec 17, 2020
1 parent df4c3f5 commit 145df12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion d17/d17.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ func readInput(inputName string) conway {
l := scanner.Text()
for x := 0; x < len(l); x++ {
if l[x] == '#' {
p := point{vals: [maxDim]int{x, y, 0, 0}}
p := point{}
p.vals[0] = x
p.vals[1] = y
c.mem[p] = l[x]
}
}
Expand Down

0 comments on commit 145df12

Please sign in to comment.