Skip to content

Commit fa670d3

Browse files
committed
fix comments
1 parent cc53a04 commit fa670d3

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/ast.ls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
carp: (msg, type = SyntaxError) ->
106106
throw type "#msg on line #{ @line or @traverseChildren -> it.line }"
107107

108-
# Defines delegaters.
108+
# Defines delegators.
109109
delegate: !(names, fn) ->
110110
for let name in names
111111
@[name] = -> fn.call this, name, it

test/loop.ls

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -436,17 +436,6 @@ until them.1 then them.push((x, y) --> x + y)
436436
eq 5 them.1(2) 3
437437

438438

439-
440-
### IIFE Scoping
441-
# IIFE constructions under `for` auto-capture the loop variables.
442-
fs = for let a, i in [1 2]
443-
for let b from 3 to 4
444-
let i = i+5
445-
-> i + a + b
446-
sums = [f! for f in flatten fs]
447-
eq sums.1, 10
448-
eq sums.2, 11
449-
450439
### Post-`for` chains
451440
eq "#{
452441
[a * b * c * d \

0 commit comments

Comments
 (0)