Skip to content

Commit

Permalink
lib: changed function comment
Browse files Browse the repository at this point in the history
Comments clarification at the deprecated function and new function.

Fixes: nodejs#22936
  • Loading branch information
sagitsofan committed Oct 12, 2018
1 parent e7b03d8 commit c1cf5c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c1cf5c6

Please sign in to comment.