From 831e7505f7cf1e6815b93dfb49d0004ef20f2a67 Mon Sep 17 00:00:00 2001 From: james-rabbit Date: Tue, 24 Oct 2017 15:27:06 -0700 Subject: [PATCH] Fix jsdoc type "array" to Array When passing an array to some when functions, there is a type warning because "array" should be "Array". This fixes the few places where lowercase "array" is used. --- when.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/when.js b/when.js index 65f8e430..abf34edd 100644 --- a/when.js +++ b/when.js @@ -175,7 +175,7 @@ define(function (require) { /** * Return a promise that will fulfill once all input promises have * fulfilled, or reject when any one input promise rejects. - * @param {array|Promise} promises array (or promise for an array) of promises + * @param {Array|Promise} promises array (or promise for an array) of promises * @returns {Promise} */ function all(promises) { @@ -186,7 +186,7 @@ define(function (require) { * Return a promise that will always fulfill with an array containing * the outcome states of all input promises. The returned promise * will only reject if `promises` itself is a rejected promise. - * @param {array|Promise} promises array (or promise for an array) of promises + * @param {Array|Promise} promises array (or promise for an array) of promises * @returns {Promise} promise for array of settled state descriptors */ function settle(promises) {