Skip to content

Commit c1cf5c6

Browse files
committed
lib: changed function comment
Comments clarification at the deprecated function and new function. Fixes: nodejs#22936
1 parent e7b03d8 commit c1cf5c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/errors.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function uvException(ctx) {
288288
/**
289289
* This creates an error compatible with errors produced in the C++
290290
* This function should replace the deprecated
291-
* `exceptionWithHostPort(err, syscall, address, port, additional)` function.
291+
* `exceptionWithHostPort` function.
292292
*
293293
* @param {number} err - A libuv error number
294294
* @param {string} syscall
@@ -355,8 +355,8 @@ function errnoException(err, syscall, original) {
355355

356356
/**
357357
* Deprecated, new function is `uvExceptionWithHostPort`
358-
* The new function added the error description directly
359-
* from C++. left here for backwards compatibility
358+
* New function added the error description directly
359+
* from C++. this method for backwards compatibility
360360
* @param {number} err - A libuv error number
361361
* @param {string} syscall
362362
* @param {string} address

0 commit comments

Comments
 (0)