Skip to content

Commit

Permalink
point2d: shorter hash
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeladler committed Dec 16, 2024
1 parent 5de79ed commit d828ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aoc_helper/point.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end

--- @return string
function Point2D:hash()
return string.format("x=%d,y=%d", self.x, self.y)
return string.format("x%dy%d", self.x, self.y)
end

--- @return string
Expand Down

0 comments on commit d828ae6

Please sign in to comment.