diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 4f8eeebdcf2a56..965ed935e064b6 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -288,7 +288,7 @@ function uvException(ctx) { /** * This creates an error compatible with errors produced in the C++ * This function should replace the deprecated - * `exceptionWithHostPort(err, syscall, address, port, additional)` function. + * `exceptionWithHostPort` function. * * @param {number} err - A libuv error number * @param {string} syscall @@ -355,8 +355,8 @@ function errnoException(err, syscall, original) { /** * Deprecated, new function is `uvExceptionWithHostPort` - * The new function added the error description directly - * from C++. left here for backwards compatibility + * New function added the error description directly + * from C++. this method for backwards compatibility * @param {number} err - A libuv error number * @param {string} syscall * @param {string} address