Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b8f0b43

Browse files
frosaspetebacondarwin
authored andcommitted
docs($q): fix incorrect @returns tag for $q.when()
1 parent 0ac969a commit b8f0b43

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ng/q.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,7 @@ function qFactory(nextTick, exceptionHandler) {
316316
* the promise comes from a source that can't be trusted.
317317
*
318318
* @param {*} value Value or a promise
319-
* @returns {Promise} Returns a single promise that will be resolved with an array of values,
320-
* each value corresponding to the promise at the same index in the `promises` array. If any of
321-
* the promises is resolved with a rejection, this resulting promise will be resolved with the
322-
* same rejection.
319+
* @returns {Promise} Returns a promise of the passed value or promise
323320
*/
324321
var when = function(value, callback, errback) {
325322
var result = defer(),

0 commit comments

Comments
 (0)