-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggested improvements to the name of the temporary variable in the example of util.getSystemErrorMessage #57305
Labels
doc
Issues and PRs related to the documentations.
Comments
SGTM, PR welcomed :) |
IkumaTadokoro
added a commit
to IkumaTadokoro/node
that referenced
this issue
Mar 4, 2025
In the previous example, `name` actually points to the `message`. So I changed this name to fit the context of the example. Fixes: nodejs#57305
aduh95
pushed a commit
that referenced
this issue
Mar 9, 2025
In the previous example, `name` actually points to the `message`. So I changed this name to fit the context of the example. Fixes: #57305 PR-URL: #57310 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
aduh95
pushed a commit
that referenced
this issue
Mar 9, 2025
In the previous example, `name` actually points to the `message`. So I changed this name to fit the context of the example. Fixes: #57305 PR-URL: #57310 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
RafaelGSS
pushed a commit
that referenced
this issue
Apr 1, 2025
In the previous example, `name` actually points to the `message`. So I changed this name to fit the context of the example. Fixes: #57305 PR-URL: #57310 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
RafaelGSS
pushed a commit
that referenced
this issue
Apr 1, 2025
In the previous example, `name` actually points to the `message`. So I changed this name to fit the context of the example. Fixes: #57305 PR-URL: #57310 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
aduh95
pushed a commit
that referenced
this issue
Apr 2, 2025
In the previous example, `name` actually points to the `message`. So I changed this name to fit the context of the example. Fixes: #57305 PR-URL: #57310 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
aduh95
pushed a commit
that referenced
this issue
Apr 3, 2025
In the previous example, `name` actually points to the `message`. So I changed this name to fit the context of the example. Fixes: #57305 PR-URL: #57310 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected URL(s)
https://nodejs.org/api/util.html#utilgetsystemerrormessageerr
Description of the problem
The sample code for util.getSystemErrorMessage is shown below.
The usage and result of this example is correct. But the
name
actually points to themessage
. The temporary variable in this example has the same name asutil.getSystemErrorName
. Therefore, changingname
tomessage
would clarify the documentation.If this suggestion is OK, I will create a PullRequest.
The text was updated successfully, but these errors were encountered: