Skip to content

Commit 42dfcdc

Browse files
committed
Updated the mapping functions
1 parent 8f4f457 commit 42dfcdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/maps/maps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ func MakeImagePointMap(lines []string) (mapping map[image.Point]rune) {
2626
return
2727
}
2828

29-
func MakeImagPointMapRect(lines []string) (mapping map[image.Point]rune, rect image.Rectangle) {
29+
func MakeImagePointMapRect(lines []string) (mapping map[image.Point]rune, rect image.Rectangle) {
3030
mapping = MakeImagePointMap(lines)
31-
rect = image.Rect(0, 0, len(lines[0])-1, len(lines)-1)
31+
rect = image.Rect(0, 0, len(lines[0]), len(lines))
3232
return
3333
}
3434

0 commit comments

Comments
 (0)