-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 return type of server.address() #22043
Conversation
doc/api/net.md
Outdated
@@ -114,7 +114,7 @@ Emitted when the server has been bound after calling [`server.listen()`][]. | |||
added: v0.1.90 | |||
--> | |||
|
|||
* Returns: {Object} | |||
* Returns: {Object} | {string} |
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.
Needs to be {Object|string}
. Otherwise the generated JSON looks like this:
"return": {
"textRaw": "Returns: {Object} | {string}",
"name": "return",
"type": "Object",
"desc": "| {string}"
},
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.
LGTM with @rubys's comment addressed.
e248d93
to
2966e7d
Compare
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
CI before landing: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/412/ |
Landed in 049c046 |
PR-URL: #22043 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #22043 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
server.address()
will return a string when listening on a pipe or UNIX domain socket.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes