docs($q): clarify what happens when rejected

Closes #3943
This commit is contained in:
naorye 2013-09-10 09:57:45 +02:00 committed by Pete Bacon Darwin
parent f102fb75b6
commit ae2fd55575

View file

@ -377,8 +377,8 @@ function qFactory(nextTick, exceptionHandler) {
* @param {Array.<Promise>} promises An array of promises.
* @returns {Promise} Returns a single promise that will be resolved with an array of values,
* each value corresponding to the promise at the same index in the `promises` array. If any of
* the promises is resolved with a rejection, this resulting promise will be resolved with the
* same rejection.
* the promises is resolved with a rejection, this resulting promise will be rejected with the
* same rejection value.
*/
function all(promises) {
var deferred = defer(),