From ac64f8bd233079f757e751e4f92c50d6ae8aa37e Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Thu, 24 Nov 2016 11:22:08 -0500 Subject: [PATCH] Improve rest args docs --- src/client/Client.js | 4 ++-- src/util/Collection.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/Client.js b/src/client/Client.js index e39b2c4bd..ead8f5d23 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -349,7 +349,7 @@ class Client extends EventEmitter { * Sets a timeout that will be automatically cancelled if the client is destroyed. * @param {Function} fn Function to execute * @param {number} delay Time to wait before executing (in milliseconds) - * @param {args} args Arguments for the function (infinite/rest argument, not an array) + * @param {...*} args Arguments for the function * @returns {Timeout} */ setTimeout(fn, delay, ...args) { @@ -374,7 +374,7 @@ class Client extends EventEmitter { * Sets an interval that will be automatically cancelled if the client is destroyed. * @param {Function} fn Function to execute * @param {number} delay Time to wait before executing (in milliseconds) - * @param {args} args Arguments for the function (infinite/rest argument, not an array) + * @param {...*} args Arguments for the function * @returns {Timeout} */ setInterval(fn, delay, ...args) { diff --git a/src/util/Collection.js b/src/util/Collection.js index 4de19f57d..abda090c9 100644 --- a/src/util/Collection.js +++ b/src/util/Collection.js @@ -305,7 +305,7 @@ class Collection extends Map { /** * Combines this collection with others into a new collection. None of the source collections are modified. - * @param {Collection} collections Collections to merge (infinite/rest argument, not an array) + * @param {...Collection} collections Collections to merge * @returns {Collection} * @example const newColl = someColl.concat(someOtherColl, anotherColl, ohBoyAColl); */