diff --git a/lib/punycode.js b/lib/punycode.js index 67905e3d7670e1..8b025927fa3ac1 100644 --- a/lib/punycode.js +++ b/lib/punycode.js @@ -46,7 +46,7 @@ function error(type) { * A generic `Array#map` utility function. * @private * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array + * @param {Function} fn The function that gets called for every array * item. * @returns {Array} A new array of values returned by the callback function. */ @@ -63,8 +63,8 @@ function map(array, fn) { * A simple `Array#map`-like wrapper to work with domain name strings or email * addresses. * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every + * @param {String} string The domain name or email address. + * @param {Function} fn The function that gets called for every * character. * @returns {Array} A new string of characters returned by the callback * function. @@ -127,7 +127,7 @@ function ucs2decode(string) { * @see `punycode.ucs2.decode` * @memberOf punycode.ucs2 * @name encode - * @param {Array} codePoints The array of numeric code points. + * @param {Array} array The array of numeric code points. * @returns {String} The new Unicode string (UCS-2). */ const ucs2encode = array => String.fromCodePoint(...array);