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:
Jeremy Ashkenas
2010-01-01 17:16:34 -05:00
parent 94bab256b4
commit fa3f3e41d4

View File

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