| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Looks good, with a small nit.
Two things regarding the commit message though:
Your author name in this commit is given as “q”. Is that intended or do you prefer to be listed (changelog, git log, AUTHORS file) with some other name? People typically prefer their full name, but ultimately it’s up to you.
Could you use Fixes: instead of Fix:? 😄 It’s not important, but the former is more commonly used around here.
Sorry, something went wrong.
There was a problem hiding this comment.
Can you drop the, or replace it with with? (not a native speaker myself but the the sounds odd here)
Sorry, something went wrong.
There was a problem hiding this comment.
Of course, thank you!
Sorry, something went wrong.
There was a problem hiding this comment.
Please avoid the use of pronouns like you in the documentation. Also, please use either italics or bold for emphasis as opposed to upper case (e.g. NOT) This can be reworded as:
Emitted when an error occurs., Unlike [`net.Socket'`[], the [`'close'`][] event will **not** be called directly following this event unless `server.close()` is manually called. See the example in the discussion of `server.listen()`.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks.
The net.Socket is not an event, so can not be displayed as a link by ['net.Socket'][], this is why i just use [net.Socket][].
Besides, "See the example in the discussion", two "the" seems odd? So i stripped second "the".
See my second commit's preview: https://github.com/sjitech/node/blob/3b440d3db2a2dfa9833eb06ede6f1adb909c1644/doc/api/net.md#event-error
Sorry, something went wrong.
|
The http.Server has the same behavior, but i can not found any description about 'error' event of http.Server, should we add same note? |
Sorry, something went wrong.
There was a problem hiding this comment.
events are "emitted", not "called"
Sorry, something went wrong.
There was a problem hiding this comment.
ok, i will correct it and the original description.
Sorry, something went wrong.
Yes. |
Sorry, something went wrong.
|
sorry, i found the http.Server has already mentioned
So i think no need to add description of error event. |
Sorry, something went wrong.
There was a problem hiding this comment.
would be good to link server.close() and server.listen()
Sorry, something went wrong.
There was a problem hiding this comment.
@QianJin2013 ... please see @sam-github's comment above :-)
Sorry, something went wrong.
There was a problem hiding this comment.
@sam-github I'd tried to link server.close() and server.listen() but failed. Now i know the reason, i have modified doc again.
Sorry, something went wrong.
|
you'll need to squash and rebase |
Sorry, something went wrong.
|
@sam-github yes, i will squash and rebase it. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fix: #9710
Checklist
Affected core subsystem(s)
doc