Skip to content
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

Closed

Conversation

apapirovski
Copy link
Member

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), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@apapirovski apapirovski added the doc Issues and PRs related to the documentations. label Apr 22, 2018
@nodejs-github-bot nodejs-github-bot added the net Issues and PRs related to the net subsystem. label Apr 22, 2018
@apapirovski apapirovski added the fast-track PRs that do not need to wait for 48 hours to land. label Apr 22, 2018
@apapirovski
Copy link
Member Author

Please 👍 here to fast-track.

@apapirovski
Copy link
Member Author

@trivikr
Copy link
Member

trivikr commented Apr 22, 2018

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])
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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?

@apapirovski
Copy link
Member Author

apapirovski commented Apr 22, 2018

@vsemozhetbyt Thanks for the catch. Fixed in d9b905e

CI Lite: https://ci.nodejs.org/job/node-test-pull-request-lite/573/

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 22, 2018
@apapirovski
Copy link
Member Author

Landed in 647954d

@apapirovski apapirovski deleted the fix-doc-net-server-listen branch April 22, 2018 15:01
apapirovski added a commit that referenced this pull request Apr 22, 2018
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>
jasnell pushed a commit that referenced this pull request Apr 23, 2018
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. doc Issues and PRs related to the documentations. fast-track PRs that do not need to wait for 48 hours to land. net Issues and PRs related to the net subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants