Skip to content

Commit

Permalink
doc: modify net.Server.listen arg list
Browse files Browse the repository at this point in the history
  • Loading branch information
musgravejw committed Apr 21, 2018
1 parent d96075c commit 7793fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -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][, host][, backlog][, callback])`][`server.listen(port, host)`]
* [`server.listen([[[port[, hostname[, backlog]]][, callback])`][`server.listen(port, host)`]
for TCP servers

This function is asynchronous. When the server starts listening, the
Expand Down Expand Up @@ -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[, hostname[, 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.
Expand Down

0 comments on commit 7793fdb

Please sign in to comment.