From 0574ec200693ad81b379582e61c3162163e133c4 Mon Sep 17 00:00:00 2001 From: 0riginaln0 <74508026+0riginaln0@users.noreply.github.com> Date: Wed, 16 Apr 2025 03:36:02 +0300 Subject: Fix of broken list comprehansion example (#208) --- doc/docs/doc/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'doc/docs') diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md index 89bd643..c4518bf 100755 --- a/doc/docs/doc/README.md +++ b/doc/docs/doc/README.md @@ -2096,13 +2096,11 @@ doubled = [item * 2 for i, item in ipairs items] The items included in the new table can be restricted with a when clause: ```moonscript -iter = ipairs items -slice = [item for i, item in iter when i > 1 and i < 3] +slice = [item for i, item in ipairs items when i > 1 and i < 3] ```
-iter = ipairs items
-slice = [item for i, item in iter when i > 1 and i < 3]
+slice = [item for i, item in ipairs items when i > 1 and i < 3]
 
-- cgit v1.2.3-55-g6feb