summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgetin <Igetin@users.noreply.github.com>2020-05-21 23:00:00 +0300
committerAndrew Ryan Davis <AndrewDavis1191@gmail.com>2020-05-24 14:28:10 -0700
commitc89f2d3ac32f97b720c3eb3a061ac323ca11dbc3 (patch)
tree89988279b413401ebddb5664e726961745d26eb6
parent293972edabb08d00c100de43cfc188e1ab5aab1f (diff)
Fix reference to an undefined variable
-rw-r--r--moonscript.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/moonscript.html.markdown b/moonscript.html.markdown
index 941578e7..193d7f97 100644
--- a/moonscript.html.markdown
+++ b/moonscript.html.markdown
@@ -192,7 +192,7 @@ items = {1, 2, 3, 4}
doubled = [item * 2 for item in *items]
-- Uses `when` to determine if a value should be included.
-slice = [item for item in *items when i > 1 and i < 3]
+slice = [item for item in *items when item > 1 and item < 3]
-- `for` clauses inside of list comprehensions can be chained.