Skip to content

Commit 534e88f

Browse files
evanlucasrvagg
authored andcommitted
doc: fix relative links in net docs
They were not being processed as relative links. PR-URL: #5358 Reviewed-By: Roman Reiss <[email protected]>
1 parent 7b98a30 commit 534e88f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/api/net.markdown

+7-7
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The last parameter `callback` will be added as a listener for the
109109
[`'listening'`][] event.
110110

111111
The parameter `backlog` behaves the same as in
112-
[`server.listen(port, \[host\], \[backlog\], \[callback\])`][].
112+
[`server.listen(port[, hostname][, backlog][, callback])`][`server.listen(port, host, backlog, callback)`].
113113

114114
### server.listen(options[, callback])
115115

@@ -123,8 +123,8 @@ The parameter `backlog` behaves the same as in
123123

124124
The `port`, `host`, and `backlog` properties of `options`, as well as the
125125
optional callback function, behave as they do on a call to
126-
[`server.listen(port, \[host\], \[backlog\], \[callback\])`][]. Alternatively,
127-
the `path` option can be used to specify a UNIX socket.
126+
[`server.listen(port[, hostname][, backlog][, callback])`][`server.listen(port, host, backlog, callback)`].
127+
Alternatively, the `path` option can be used to specify a UNIX socket.
128128

129129
If `exclusive` is `false` (default), then cluster workers will use the same
130130
underlying handle, allowing connection handling duties to be shared. When
@@ -169,7 +169,7 @@ double-backslashes, such as:
169169
path.join('\\\\?\\pipe', process.cwd(), 'myctl'))
170170

171171
The parameter `backlog` behaves the same as in
172-
[`server.listen(port, \[host\], \[backlog\], \[callback\])`][].
172+
[`server.listen(port[, hostname][, backlog][, callback])`][`server.listen(port, host, backlog, callback)`].
173173

174174
### server.listen(port[, hostname][, backlog][, callback])
175175

@@ -394,7 +394,7 @@ The `connectListener` parameter will be added as a listener for the
394394
### socket.connect(path[, connectListener])
395395
### socket.connect(port[, host][, connectListener])
396396

397-
As [`socket.connect(options\[, connectListener\])`][],
397+
As [`socket.connect(options\[, connectListener\])`][`socket.connect(options, connectListener)`],
398398
with options either as either `{port: port, host: host}` or `{path: path}`.
399399

400400
### socket.destroy()
@@ -725,8 +725,8 @@ Returns true if input is a version 6 IP address, otherwise returns false.
725725
[`pause()`]: #net_socket_pause
726726
[`resume()`]: #net_socket_resume
727727
[`server.getConnections()`]: #net_server_getconnections_callback
728-
[`server.listen(port, \[host\], \[backlog\], \[callback\])`]: #net_server_listen_port_hostname_backlog_callback
729-
[`socket.connect(options\[, connectListener\])`]: #net_socket_connect_options_connectlistener
728+
[`server.listen(port, host, backlog, callback)`]: #net_server_listen_port_hostname_backlog_callback
729+
[`socket.connect(options, connectListener)`]: #net_socket_connect_options_connectlistener
730730
[`socket.connect`]: #net_socket_connect_options_connectlistener
731731
[`socket.setTimeout()`]: #net_socket_settimeout_timeout_callback
732732
[`stream.setEncoding()`]: stream.html#stream_readable_setencoding_encoding

0 commit comments

Comments
 (0)