Skip to content

Commit a80e9a6

Browse files
evanlucasMyles Borins
authored andcommitted
doc: fix relative links in net docs
They were not being processed as relative links. PR-URL: #5358 Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent 34776a1 commit a80e9a6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/api/net.markdown

Lines changed: 7 additions & 7 deletions
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

@@ -389,7 +389,7 @@ The `connectListener` parameter will be added as a listener for the
389389
### socket.connect(path[, connectListener])
390390
### socket.connect(port[, host][, connectListener])
391391

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

395395
### socket.destroy()
@@ -720,8 +720,8 @@ Returns true if input is a version 6 IP address, otherwise returns false.
720720
[`pause()`]: #net_socket_pause
721721
[`resume()`]: #net_socket_resume
722722
[`server.getConnections()`]: #net_server_getconnections_callback
723-
[`server.listen(port, \[host\], \[backlog\], \[callback\])`]: #net_server_listen_port_hostname_backlog_callback
724-
[`socket.connect(options\[, connectListener\])`]: #net_socket_connect_options_connectlistener
723+
[`server.listen(port, host, backlog, callback)`]: #net_server_listen_port_hostname_backlog_callback
724+
[`socket.connect(options, connectListener)`]: #net_socket_connect_options_connectlistener
725725
[`socket.connect`]: #net_socket_connect_options_connectlistener
726726
[`socket.setTimeout()`]: #net_socket_settimeout_timeout_callback
727727
[`stream.setEncoding()`]: stream.html#stream_readable_setencoding_encoding

0 commit comments

Comments
 (0)