Update syntax-list-comprehensions.md

This commit is contained in:
James Napora 2022-02-13 16:41:10 -08:00 committed by GitHub
parent a8593fca76
commit 9361b856da
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ end
-- list comprehensions
local t = {1,2,3,4,5,6,7,8,9}
local onlyEven = {local n for n in t do if n%2 == 0 then n}
local onlyEven = {for n in t do if n%2 == 0 then n}
```
## Drawbacks