Skip to content

Commit

Permalink
Fix readme bug kriskowal#97. Thanks @enyo.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Jul 31, 2012
1 parent 5870fac commit bbc738a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ But ``spread`` calls ``all`` initially, so you can skip it in chains.

```javascript
return foo()
.then(function (name, location) {
return [name, FS.read(location, "utf-8")];
.then(function (info) {
return [info.name, FS.read(info.location, "utf-8")];
// FS.read returns a promise, so this array
// mixes values and promises
})
Expand Down

0 comments on commit bbc738a

Please sign in to comment.