diff options
author | musgravejw <musgravejw@gmail.com> | 2018-04-20 19:32:30 -0400 |
---|---|---|
committer | Trivikram Kamat <16024985+trivikr@users.noreply.github.com> | 2018-04-22 02:25:53 -0700 |
commit | 3cb8e64e85c4b50c1154994374e13cb34adc9dd5 (patch) | |
tree | eee4ef65dc0a12565ee79c2a7770d8cf390391c4 /doc/api/net.md | |
parent | 1f3fbd43b7e73e16cb383bda36663517bf20540b (diff) | |
download | android-node-v8-3cb8e64e85c4b50c1154994374e13cb34adc9dd5.tar.gz android-node-v8-3cb8e64e85c4b50c1154994374e13cb34adc9dd5.tar.bz2 android-node-v8-3cb8e64e85c4b50c1154994374e13cb34adc9dd5.zip |
doc: modify net.Server.listen arg list
PR-URL: https://github.com/nodejs/node/pull/20142
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/net.md')
-rw-r--r-- | doc/api/net.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/net.md b/doc/api/net.md index 0575bb5f8f..a60278ea02 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -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 @@ -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. |