From fa3f3e41d498f33783fd86787fbc9ba6031bbca7 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 1 Jan 2010 17:16:34 -0500 Subject: [PATCH] fixing the food/eat array comprehension in the docs to not pretend like there's a made-up method on String.prototype --- documentation/coffee/array_comprehensions.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/coffee/array_comprehensions.coffee b/documentation/coffee/array_comprehensions.coffee index a04ab395..c272944e 100644 --- a/documentation/coffee/array_comprehensions.coffee +++ b/documentation/coffee/array_comprehensions.coffee @@ -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 \ No newline at end of file