diff --git a/README.md b/README.md index 783fa7a1..a06c1230 100644 --- a/README.md +++ b/README.md @@ -608,7 +608,7 @@ p.catch(function(reason) { /* handle rejection */ }); The `then()` method returns a Promise. It takes 2 arguments: callback for the success & failure cases. ```js -p.then(function(value) { /* handle fulfillment */, function(reason) { /* handle rejection */ }); +p.then(function(value) { /* handle fulfillment */}, function(reason) { /* handle rejection */ }); ``` The `Promise.all(iterable)` method returns a promise that resolves when all of the promises in the iterable argument have resolved, or rejects with the reason of the first passed promise that rejects.