Fixed string.format error
This commit is contained in:
parent
6b0be055b7
commit
8df04c0d73
@ -57,7 +57,7 @@ end
|
||||
-- @param point Table with two numbers as {x, y}
|
||||
-- @return "[ x, y ]"
|
||||
function point.__tostring(point)
|
||||
return string.format( "[ f, f ]", point[1], point[2] )
|
||||
return string.format( "[ %d, %d ]", point[1], point[2] )
|
||||
end
|
||||
|
||||
--- Add points.
|
||||
|
Loading…
x
Reference in New Issue
Block a user