-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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/api: listed server.listen() parameters and made some minor corr… #39984
Conversation
doc/api/fs.md
Outdated
@@ -2651,7 +2651,7 @@ changes: | |||
Asynchronously creates a directory. | |||
|
|||
The callback is given a possible exception and, if `recursive` is `true`, the | |||
first directory path created, `(err, [path])`. | |||
first directory path created, `(err [,path])`. |
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.
first directory path created, `(err [,path])`. | |
first directory path created, `(err[, path])`. |
doc/api/fs.md
Outdated
@@ -4871,7 +4871,7 @@ Returns the number of `bytesRead`. | |||
For detailed information, see the documentation of the asynchronous version of | |||
this API: [`fs.read()`][]. | |||
|
|||
### `fs.readSync(fd, buffer, [options])` | |||
### `fs.readSync(fd, buffer [,options])` |
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.
### `fs.readSync(fd, buffer [,options])` | |
### `fs.readSync(fd, buffer[, options])` |
doc/api/http.md
Outdated
@@ -1290,7 +1290,11 @@ event is emitted on the server object, and (by default) the socket is destroyed. | |||
See [`server.timeout`][] for more information on how timeout behavior can be | |||
customized. | |||
|
|||
### `server.listen()` | |||
### `server.listen(Port [,host] [,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.
### `server.listen(Port [,host] [,callback])` | |
### `server.listen(port[, host[, callback]])` |
doc/api/http.md
Outdated
* `Port` {Number} | ||
* `Host` {String} | ||
* `callback` {Function} |
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.
* `Port` {Number} | |
* `Host` {String} | |
* `callback` {Function} | |
* `port` {number} | |
* `host` {string} | |
* `callback` {Function} |
doc/api/stream.md
Outdated
@@ -2041,7 +2041,7 @@ await finished(compose(s1, s2, s3)); | |||
console.log(res); // prints 'HELLOWORLD' | |||
``` | |||
|
|||
### `stream.Readable.from(iterable, [options])` | |||
### `stream.Readable.from(iterable [,options])` |
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.
### `stream.Readable.from(iterable [,options])` | |
### `stream.Readable.from(iterable[, options])` |
doc/api/http.md
Outdated
@@ -1290,7 +1290,11 @@ event is emitted on the server object, and (by default) the socket is destroyed. | |||
See [`server.timeout`][] for more information on how timeout behavior can be | |||
customized. | |||
|
|||
### `server.listen()` | |||
### `server.listen(Port[, host][, 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.
### `server.listen(Port[, host][, callback])` | |
### `server.listen(port[, host][, callback])` |
doc/api/http.md
Outdated
### `server.listen()` | ||
### `server.listen(Port[, host][, callback])` | ||
|
||
* `Port` {number} |
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.
* `Port` {number} | |
* `port` {number} |
doc/api/http.md
Outdated
### `server.listen(Port[, host][, callback])` | ||
|
||
* `Port` {number} | ||
* `Host` {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.
* `Host` {string} | |
* `host` {string} |
doc/api/http.md: listed server.listen() parameters
doc/api/http.md
Outdated
@@ -1290,7 +1290,11 @@ event is emitted on the server object, and (by default) the socket is destroyed. | |||
See [`server.timeout`][] for more information on how timeout behavior can be | |||
customized. | |||
|
|||
### `server.listen()` | |||
### `server.listen(port[, host][, 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.
Please keep it as is. server.listen()
has multiple signatures. See https://nodejs.org/api/net.html#net_server_listen.
PR-URL: #39984 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Landed in f4292bc |
PR-URL: #39984 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: #39984 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
listed server.listen() parameters
doc/api/http.md : listed server.listen() parameters