mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
change lexical scoping example to use var names that haven't been already defined
This commit is contained in:
parent
56015bd23f
commit
bd2597c6b8
1 changed files with 4 additions and 4 deletions
|
@ -102,11 +102,11 @@ while true
|
|||
!!true
|
||||
|
||||
# Lexical scoping.
|
||||
a: 5
|
||||
v_1: 5
|
||||
change_a_and_set_b: =>
|
||||
a: 10
|
||||
b: 15
|
||||
b: 20
|
||||
v_1: 10
|
||||
v_2: 15
|
||||
v_2: 20
|
||||
|
||||
# Array comprehensions.
|
||||
supper: food.capitalize() for food in ['toast', 'cheese', 'wine']
|
||||
|
|
Loading…
Add table
Reference in a new issue