mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update syntax-list-comprehensions.md
This commit is contained in:
parent
a8593fca76
commit
9361b856da
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue