-
Notifications
You must be signed in to change notification settings - Fork 30k
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 minor typos in net.md #14502
Conversation
doc/api/net.md
Outdated
@@ -386,7 +386,7 @@ Creates a new socket object. | |||
for details. Defaults to `false`. | |||
* `readable` {boolean} Allow reads on the socket when a `fd` is passed, | |||
otherwise ignored. Defaults to `false`. | |||
* `writable` {boolean} Allow reads on the socket when a `fd` is passed, | |||
* `writable` {boolean} Allow writes on the socket when a `fd` is passed, |
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.
Both placed should be an `fd`
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.
@refack Thanks! I fixed with Line: 235.
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.
@refack pardon my ignorance but why?
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.
I suppose it depends on whether you read it as "an ef dee" or "a file descriptor."
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.
Ok, it makes sense. Thanks.
About writable, not 'reads' but 'writes' is correct. And also, add parentheses because server.getConnections is function.
Landed in e95aceb, thank you a lot! |
About writable, not 'reads' but 'writes' is correct. And also, add parentheses because server.getConnections is function. PR-URL: #14502 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
About writable, not 'reads' but 'writes' is correct. And also, add parentheses because server.getConnections is function. PR-URL: #14502 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Fix typos and add missing parentheses to
server.getConnections
function.Checklist
Affected core subsystem(s)
doc