From dddb9f50a079580f938e69f1ba9d32927a08301c Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Mon, 3 Apr 2017 23:45:58 -0700 Subject: fix ellipsis in comments --- lib/doDuring.js | 2 +- lib/doWhilst.js | 2 +- lib/whilst.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/doDuring.js b/lib/doDuring.js index 06aa21e..cce61d0 100644 --- a/lib/doDuring.js +++ b/lib/doDuring.js @@ -28,7 +28,7 @@ export default function doDuring(fn, test, callback) { var _fn = wrapAsync(fn); var _test = wrapAsync(test); - function next(err/*, args...*/) { + function next(err/*, ...args*/) { if (err) return callback(err); var args = slice(arguments, 1); args.push(check); diff --git a/lib/doWhilst.js b/lib/doWhilst.js index fa07874..5e7d259 100644 --- a/lib/doWhilst.js +++ b/lib/doWhilst.js @@ -29,7 +29,7 @@ import wrapAsync from './internal/wrapAsync'; export default function doWhilst(iteratee, test, callback) { callback = onlyOnce(callback || noop); var _iteratee = wrapAsync(iteratee); - var next = function(err/*, args...*/) { + var next = function(err/*, ...args*/) { if (err) return callback(err); var args = slice(arguments, 1); if (test.apply(this, args)) return _iteratee(next); diff --git a/lib/whilst.js b/lib/whilst.js index 5c8880f..5838b79 100644 --- a/lib/whilst.js +++ b/lib/whilst.js @@ -42,7 +42,7 @@ export default function whilst(test, iteratee, callback) { callback = onlyOnce(callback || noop); var _iteratee = wrapAsync(iteratee); if (!test()) return callback(null); - var next = function(err/*, args...*/) { + var next = function(err/*, ...args*/) { if (err) return callback(err); if (test()) return _iteratee(next); callback.apply(null, [null].concat(slice(arguments, 1))); -- cgit v1.2.1