-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
doc: fix incorrect net listen signature #20209
Conversation
Please 👍 here to fast-track. |
Thanks @apapirovski for a quick fix! |
doc/api/net.md
Outdated
@@ -296,7 +296,7 @@ added: v0.1.90 | |||
|
|||
Start a [IPC][] server listening for connections on the given `path`. | |||
|
|||
#### server.listen([port][, host][, backlog][, callback]) | |||
#### server.listen([[[port[, host[, backlog]]][, callback]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I count correctly, for the port, host, backlog
we have 5 [
and 3 ]
, is it OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely not correct. Thanks for spotting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it is just:
server.listen([port[, host[, backlog]]][, callback])
here and above?
@vsemozhetbyt Thanks for the catch. Fixed in d9b905e CI Lite: https://ci.nodejs.org/job/node-test-pull-request-lite/573/ |
Landed in 647954d |
PR-URL: #20209 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #20209 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Corrects the param name from hostname to host to be consistent everywhere and also corrects the actual heading signature rather than just the instances linking to it.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes