change lexical scoping example to use var names that haven't been already defined

This commit is contained in:
Jeremy Ashkenas 2010-01-03 18:27:26 -05:00
parent 56015bd23f
commit bd2597c6b8
1 changed files with 4 additions and 4 deletions

View File

@ -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']