Skip to content

Commit

Permalink
Merge pull request kriskowal#132 from eentzel/docfix
Browse files Browse the repository at this point in the history
Update README to reflect `.done()` replacing `.end()`
  • Loading branch information
domenic committed Nov 6, 2012
2 parents ba585c9 + 680bd27 commit 46c3ff7
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 @@ -38,7 +38,7 @@ Q.fcall(step1)
}, function (error) {
// Handle any error from step1 through step4
})
.end();
.done();
```

With this approach, you also get implicit error propagation,
Expand Down Expand Up @@ -368,7 +368,7 @@ foo()
.then(function () {
return "bar";
})
.end()
.done()
```

Ending a promise chain makes sure that, if an error doesn’t get
Expand Down

0 comments on commit 46c3ff7

Please sign in to comment.