Skip to content

Commit a04d15a

Browse files
author
sogaiu
committed
Use :in instead of :generate in loop example
1 parent 2b319f2 commit a04d15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/loop.janet

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
(for i 0 100
7171
(yield i)))))
7272

73-
(loop [x :generate f]
73+
(loop [x :in f]
7474
(print x))
7575
# print 0, 1, 2, ... 99
7676

0 commit comments

Comments
 (0)