Browse files

fix some readme syntax error.

  • Loading branch information...
1 parent 4db1708 commit b567becf63dbc1bd29cde7b879d23c4c2db00848 @seanlong seanlong committed Sep 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -334,7 +334,7 @@ Return a new function which will call *function* with the gathered arguments.
```javascript
function testPartial(){
- var args = reduce(function(x,y){ x+", "+y },arguments);
+ var args = reduce(function(x,y){ return x+", "+y },arguments);
console.log("this:",this);
console.log("args:",args);
@@ -349,7 +349,7 @@ this: 3.14159
args: 3,14,1,5,9
```
-<a name="reduce />
+<a name="reduce" />
## reduce(*function*,*iterable*)
Apply *function* cumulatively to the items of *iterable*, as to reduce the

0 comments on commit b567bec

Please sign in to comment.