Fixed string.format error

This commit is contained in:
Davis 2015-12-11 23:44:26 -05:00
parent 6b0be055b7
commit 8df04c0d73

View File

@ -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.