Skip to content

Commit

Permalink
Merge pull request #480 from stevage/patch-2
Browse files Browse the repository at this point in the history
Correct promise.tap "equivalent" explanation
  • Loading branch information
briancavalier committed Feb 16, 2016
2 parents 1516d79 + 3d2b25f commit ade6393
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/api.md
Expand Up @@ -579,8 +579,7 @@ These are equivalent:
```js
// Using only .then()
promise.then(function(x) {
doSideEffectsHere(x);
return x;
return when(doSideEffectsHere(x)).yield(x);
});

// Using .tap()
Expand Down

0 comments on commit ade6393

Please sign in to comment.