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:
parent
34add7d7bf
commit
c3d0e50e8f
|
@ -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
|
Loading…
Reference in New Issue