0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

doc: fix incorrect net listen signature

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Anatoli Papirovski 2018-04-22 11:32:52 +02:00
parent 2060787d38
commit 647954d0a0
No known key found for this signature in database
GPG Key ID: 614E2E1ABEB4B2C0

View File

@ -192,7 +192,7 @@ Possible signatures:
* [`server.listen(options[, callback])`][`server.listen(options)`]
* [`server.listen(path[, backlog][, callback])`][`server.listen(path)`]
for [IPC][] servers
* [`server.listen([[[port[, hostname[, backlog]]][, callback])`][`server.listen(port, host)`]
* [`server.listen([port[, host[, backlog]]][, callback])`][`server.listen(port, host)`]
for TCP servers
This function is asynchronous. When the server starts listening, the
@ -264,7 +264,7 @@ added: v0.11.14
* Returns: {net.Server}
If `port` is specified, it behaves the same as
[`server.listen([[[port[, hostname[, backlog]]][, callback])`][`server.listen(port, host)`].
[`server.listen([port[, host[, backlog]]][, callback])`][`server.listen(port, host)`].
Otherwise, if `path` is specified, it behaves the same as
[`server.listen(path[, backlog][, callback])`][`server.listen(path)`].
If none of them is specified, an error will be thrown.
@ -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])
<!-- YAML
added: v0.1.90
-->