mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 17:27:59 -05:00
fixing the food/eat array comprehension in the docs to not pretend like there's a made-up method on String.prototype
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Eat lunch.
|
||||
lunch: food.eat() for food in ['toast', 'cheese', 'wine']
|
||||
lunch: this.eat(food) for food in ['toast', 'cheese', 'wine']
|
||||
|
||||
# Zebra-stripe a table.
|
||||
highlight(row) for row, i in table when i % 2 is 0
|
||||
Reference in New Issue
Block a user