Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-04-05 20:04:54 +0300
committerRich Trott <rtrott@gmail.com>2020-04-08 01:18:13 +0300
commitc849f2d4f8ff19c830b6a97bd6978bf41f878e8b (patch)
tree835ebafed1cfd9c59c453f7215949894d88c7e9a /doc/api/net.md
parent8aa7ef7840ef5f7161f3195e51a3fa6783290160 (diff)
doc: remove optional parameter from markdown anchor link
Fix up a few instances so that lines don't xceed 80 characters. PR-URL: https://github.com/nodejs/node/pull/32671 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/net.md')
-rw-r--r--doc/api/net.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/net.md b/doc/api/net.md
index 51a1b8b48ec..a9d84e0b174 100644
--- a/doc/api/net.md
+++ b/doc/api/net.md
@@ -589,7 +589,7 @@ Possible signatures:
* [`socket.connect(options[, connectListener])`][`socket.connect(options)`]
* [`socket.connect(path[, connectListener])`][`socket.connect(path)`]
for [IPC][] connections.
-* [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`]
+* [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`]
for TCP connections.
* Returns: {net.Socket} The socket itself.
@@ -1098,21 +1098,21 @@ added: v0.1.90
-->
* `port` {number} Port the socket should connect to. Will be passed to
- [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`].
+ [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`].
* `host` {string} Host the socket should connect to. Will be passed to
- [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`].
+ [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`].
**Default:** `'localhost'`.
* `connectListener` {Function} Common parameter of the
[`net.createConnection()`][] functions, an "once" listener for the
`'connect'` event on the initiating socket. Will be passed to
- [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`].
+ [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`].
* Returns: {net.Socket} The newly created socket used to start the connection.
Initiates a TCP connection.
This function creates a new [`net.Socket`][] with all options set to default,
immediately initiates connection with
-[`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`],
+[`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`],
then returns the `net.Socket` that starts the connection.
## `net.createServer([options][, connectionListener])`
@@ -1259,7 +1259,7 @@ Returns `true` if input is a version 6 IP address, otherwise returns `false`.
[`socket.connect()`]: #net_socket_connect
[`socket.connect(options)`]: #net_socket_connect_options_connectlistener
[`socket.connect(path)`]: #net_socket_connect_path_connectlistener
-[`socket.connect(port, host)`]: #net_socket_connect_port_host_connectlistener
+[`socket.connect(port)`]: #net_socket_connect_port_host_connectlistener
[`socket.connecting`]: #net_socket_connecting
[`socket.destroy()`]: #net_socket_destroy_exception
[`socket.end()`]: #net_socket_end_data_encoding_callback