mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
fixed typo in docs
This commit is contained in:
parent
f0deac7de1
commit
ad999af9ba
@ -400,7 +400,7 @@ This example copies the key-value table `thing`:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Table comprehensions, like list comprehensions, also support multiple `for` and
|
Table comprehensions, like list comprehensions, also support multiple `for` and
|
||||||
`when` clauses. In this example we use a `where` clause to prevent the value
|
`when` clauses. In this example we use a `when` clause to prevent the value
|
||||||
associated with the `color` key from being copied.
|
associated with the `color` key from being copied.
|
||||||
|
|
||||||
```moon
|
```moon
|
||||||
|
5
todo
5
todo
@ -1,5 +1,10 @@
|
|||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
|
-- error when assining a loop whose body doesn't end in expression
|
||||||
|
|
||||||
|
x = for x in y
|
||||||
|
y = 100
|
||||||
|
|
||||||
-- seems like running in moon messes up require order
|
-- seems like running in moon messes up require order
|
||||||
|
|
||||||
- don't reuse _, put a local on it, so we don't keep around trash
|
- don't reuse _, put a local on it, so we don't keep around trash
|
||||||
|
Loading…
Reference in New Issue
Block a user