From c89f2d3ac32f97b720c3eb3a061ac323ca11dbc3 Mon Sep 17 00:00:00 2001 From: Igetin Date: Thu, 21 May 2020 23:00:00 +0300 Subject: [PATCH] Fix reference to an undefined variable --- moonscript.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.