Update lua.md (#652)

Change zero to one indexed
This commit is contained in:
matjojo 2018-11-07 21:48:58 +01:00 committed by chad d
parent 2c163cb3ba
commit 5aa602c9e0
1 changed files with 1 additions and 1 deletions

2
lua.md
View File

@ -32,7 +32,7 @@ title: Lua
-- Remember, arrays are also tables
array = { "a", "b", "c", "d" }
print(array[2]) -- "b" (zero-indexed)
print(array[2]) -- "b" (one-indexed)
print(#array) -- 4 (length)
## Loops