summaryrefslogtreecommitdiff
path: root/doc/api/net.md
diff options
context:
space:
mode:
authorAnatoli Papirovski <apapirovski@mac.com>2018-04-22 11:32:52 +0200
committerAnatoli Papirovski <apapirovski@mac.com>2018-04-22 17:01:01 +0200
commit647954d0a045c72fc6b22afcfd89daa72d81bab3 (patch)
treeb516d50086063a847372a240ca7020144777a51c /doc/api/net.md
parent2060787d386099ceadbb6de2d81dc2f34c90503d (diff)
downloadandroid-node-v8-647954d0a045c72fc6b22afcfd89daa72d81bab3.tar.gz
android-node-v8-647954d0a045c72fc6b22afcfd89daa72d81bab3.tar.bz2
android-node-v8-647954d0a045c72fc6b22afcfd89daa72d81bab3.zip
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>
Diffstat (limited to 'doc/api/net.md')
-rw-r--r--doc/api/net.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/net.md b/doc/api/net.md
index a60278ea02..54f3c2f737 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[, 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
-->