From 7793fdbcbc49fb97e52afecd7aabc43258ea3092 Mon Sep 17 00:00:00 2001 From: musgravejw Date: Fri, 20 Apr 2018 19:32:30 -0400 Subject: [PATCH] doc: modify net.Server.listen arg list --- doc/api/net.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/net.md b/doc/api/net.md index 0575bb5f8f2491..a60278ea02f638 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.