Skip to content

Commit f41660a

Browse files
Trotttargos
authored andcommitted
doc: remove optional parameter from markdown anchor link
Fix up a few instances so that lines don't xceed 80 characters. PR-URL: #32671 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 94251c4 commit f41660a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/net.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ Possible signatures:
589589
* [`socket.connect(options[, connectListener])`][`socket.connect(options)`]
590590
* [`socket.connect(path[, connectListener])`][`socket.connect(path)`]
591591
for [IPC][] connections.
592-
* [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`]
592+
* [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`]
593593
for TCP connections.
594594
* Returns: {net.Socket} The socket itself.
595595

@@ -1098,21 +1098,21 @@ added: v0.1.90
10981098
-->
10991099

11001100
* `port` {number} Port the socket should connect to. Will be passed to
1101-
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`].
1101+
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`].
11021102
* `host` {string} Host the socket should connect to. Will be passed to
1103-
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`].
1103+
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`].
11041104
**Default:** `'localhost'`.
11051105
* `connectListener` {Function} Common parameter of the
11061106
[`net.createConnection()`][] functions, an "once" listener for the
11071107
`'connect'` event on the initiating socket. Will be passed to
1108-
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`].
1108+
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`].
11091109
* Returns: {net.Socket} The newly created socket used to start the connection.
11101110

11111111
Initiates a TCP connection.
11121112

11131113
This function creates a new [`net.Socket`][] with all options set to default,
11141114
immediately initiates connection with
1115-
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`],
1115+
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`],
11161116
then returns the `net.Socket` that starts the connection.
11171117

11181118
## `net.createServer([options][, connectionListener])`
@@ -1259,7 +1259,7 @@ Returns `true` if input is a version 6 IP address, otherwise returns `false`.
12591259
[`socket.connect()`]: #net_socket_connect
12601260
[`socket.connect(options)`]: #net_socket_connect_options_connectlistener
12611261
[`socket.connect(path)`]: #net_socket_connect_path_connectlistener
1262-
[`socket.connect(port, host)`]: #net_socket_connect_port_host_connectlistener
1262+
[`socket.connect(port)`]: #net_socket_connect_port_host_connectlistener
12631263
[`socket.connecting`]: #net_socket_connecting
12641264
[`socket.destroy()`]: #net_socket_destroy_exception
12651265
[`socket.end()`]: #net_socket_end_data_encoding_callback

0 commit comments

Comments
 (0)