Skip to content

Commit d63a50c

Browse files
naoryepetebacondarwin
authored andcommitted
docs($q): clarify what happens when rejected
Closes angular#3943
1 parent ce351e6 commit d63a50c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ng/q.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ function qFactory(nextTick, exceptionHandler) {
480480
* @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
481481
* @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,
482482
* each value corresponding to the promise at the same index/key in the `promises` array/hash. If any of
483-
* the promises is resolved with a rejection, this resulting promise will be resolved with the
484-
* same rejection.
483+
* the promises is resolved with a rejection, this resulting promise will be rejected with the
484+
* same rejection value.
485485
*/
486486
function all(promises) {
487487
var deferred = defer(),

0 commit comments

Comments
 (0)