fix(array): format error message

This commit is contained in:
Linden
2025-01-29 07:13:16 +11:00
parent d56c785a37
commit 6a24f9b971

View File

@@ -52,7 +52,7 @@ function lib.array:from(iter)
return arr return arr
end end
error('Array.from argument was not a valid iterable value (received %s)') error(('Array.from argument was not a valid iterable value (received %s)'):format(iterType))
end end
---Returns the element at the given index, with negative numbers counting backwards from the end of the array. ---Returns the element at the given index, with negative numbers counting backwards from the end of the array.