Skip to content

Commit 42766a8

Browse files
committed
doc: add link to references in net.Socket
PR-URL: #11625 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent dd81d53 commit 42766a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/net.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Construct a new socket object.
340340
`fd` allows you to specify the existing file descriptor of socket.
341341
Set `readable` and/or `writable` to `true` to allow reads and/or writes on this
342342
socket (NOTE: Works only when `fd` is passed).
343-
About `allowHalfOpen`, refer to `createServer()` and `'end'` event.
343+
About `allowHalfOpen`, refer to [`net.createServer()`][] and [`'end'`][] event.
344344

345345
`net.Socket` instances are [`EventEmitter`][] with the following events:
346346

@@ -952,6 +952,7 @@ Returns true if input is a version 6 IP address, otherwise returns false.
952952
[`dns.lookup()` hints]: dns.html#dns_supported_getaddrinfo_flags
953953
[`end()`]: #net_socket_end_data_encoding
954954
[`EventEmitter`]: events.html#events_class_eventemitter
955+
[`net.createServer()`]: #net_net_createserver_options_connectionlistener
955956
[`net.Socket`]: #net_class_net_socket
956957
[`pause()`]: #net_socket_pause
957958
[`resume()`]: #net_socket_resume

0 commit comments

Comments
 (0)