Skip to content

Commit 8ff73aa

Browse files
musgravejwjasnell
authored andcommitted
doc: modify net.Server.listen arg list
PR-URL: #20142 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 80c46c1 commit 8ff73aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/net.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Possible signatures:
192192
* [`server.listen(options[, callback])`][`server.listen(options)`]
193193
* [`server.listen(path[, backlog][, callback])`][`server.listen(path)`]
194194
for [IPC][] servers
195-
* [`server.listen([port][, host][, backlog][, callback])`][`server.listen(port, host)`]
195+
* [`server.listen([[[port[, hostname[, backlog]]][, callback])`][`server.listen(port, host)`]
196196
for TCP servers
197197

198198
This function is asynchronous. When the server starts listening, the
@@ -264,7 +264,7 @@ added: v0.11.14
264264
* Returns: {net.Server}
265265

266266
If `port` is specified, it behaves the same as
267-
[`server.listen([port][, hostname][, backlog][, callback])`][`server.listen(port, host)`].
267+
[`server.listen([[[port[, hostname[, backlog]]][, callback])`][`server.listen(port, host)`].
268268
Otherwise, if `path` is specified, it behaves the same as
269269
[`server.listen(path[, backlog][, callback])`][`server.listen(path)`].
270270
If none of them is specified, an error will be thrown.

0 commit comments

Comments
 (0)