Skip to content

Commit 423a58d

Browse files
thefourtheyervagg
authored andcommitted
doc: show links consistently in deprecations
PR-URL: #4907 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fd87659 commit 423a58d

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

doc/api/crypto.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ The `key` is the raw key used by the `algorithm` and `iv` is an
854854

855855
### crypto.createCredentials(details)
856856

857-
Stability: 0 - Deprecated: Use [`tls.createSecureContext`][] instead.
857+
Stability: 0 - Deprecated: Use [`tls.createSecureContext()`][] instead.
858858

859859
The `crypto.createCredentials()` method is a deprecated alias for creating
860860
and returning a `tls.SecureContext` object. The `crypto.createCredentials()`
@@ -1339,7 +1339,7 @@ See the reference for other recommendations and details.
13391339
[`diffieHellman.setPublicKey()`]: #crypto_diffiehellman_setpublickey_public_key_encoding
13401340
[`EVP_BytesToKey`]: https://www.openssl.org/docs/crypto/EVP_BytesToKey.html
13411341
[`getCurves()`]: #crypto_crypto_getcurves
1342-
[`tls.createSecureContext`]: tls.html#tls_tls_createsecurecontext_details
1342+
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_details
13431343
[`Buffer`]: buffer.html
13441344
[buffers]: buffer.html
13451345
[Caveats]: #crypto_support_for_weak_or_compromised_algorithms

doc/api/net.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ was not open when it was closed.
7171

7272
### server.connections
7373

74-
Stability: 0 - Deprecated: Use [`server.getConnections`][] instead.
74+
Stability: 0 - Deprecated: Use [`server.getConnections()`][] instead.
7575

7676
The number of concurrent connections on the server.
7777

@@ -717,7 +717,7 @@ Returns true if input is a version 6 IP address, otherwise returns false.
717717
[`net.Socket`]: #net_class_net_socket
718718
[`pause()`]: #net_socket_pause
719719
[`resume()`]: #net_socket_resume
720-
[`server.getConnections`]: #net_server_getconnections_callback
720+
[`server.getConnections()`]: #net_server_getconnections_callback
721721
[`server.listen(port, \[host\], \[backlog\], \[callback\])`]: #net_server_listen_port_hostname_backlog_callback
722722
[`socket.connect(options\[, connectListener\])`]: #net_socket_connect_options_connectlistener
723723
[`socket.connect`]: #net_socket_connect_options_connectlistener

doc/api/tls.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ is expensive.
155155

156156
## Class: CryptoStream
157157

158-
Stability: 0 - Deprecated: Use [tls.TLSSocket][] instead.
158+
Stability: 0 - Deprecated: Use [`tls.TLSSocket()`][] instead.
159159

160160
This is an encrypted stream.
161161

@@ -958,7 +958,7 @@ console.log(ciphers); // ['AES128-SHA', 'AES256-SHA', ...]
958958
[crypto.getCurves()]: crypto.html#crypto_crypto_getcurves
959959
[tls.createServer]: #tls_tls_createserver_options_secureconnectionlistener
960960
[tls.createSecurePair]: #tls_tls_createsecurepair_context_isserver_requestcert_rejectunauthorized_options
961-
[tls.TLSSocket]: #tls_class_tls_tlssocket
961+
[`tls.TLSSocket()`]: #tls_class_tls_tlssocket
962962
[`net.Server`]: net.html#net_class_net_server
963963
[`net.Socket`]: net.html#net_class_net_socket
964964
[net.Server.address()]: net.html#net_server_address

doc/api/util.markdown

+8-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ are unnecessary for Node.js's internal functionality.
1414

1515
## util.debug(string)
1616

17-
Stability: 0 - Deprecated: use console.error() instead.
17+
Stability: 0 - Deprecated: Use [`console.error()`][] instead.
1818

1919
Deprecated predecessor of `console.error`.
2020

@@ -83,7 +83,7 @@ when the deprecated API is used. Configurable at run-time through the
8383

8484
## util.error([...])
8585

86-
Stability: 0 - Deprecated: Use console.error() instead.
86+
Stability: 0 - Deprecated: Use [`console.error()`][] instead.
8787

8888
Deprecated predecessor of `console.error`.
8989

@@ -286,9 +286,7 @@ util.isBoolean(false)
286286

287287
## util.isBuffer(object)
288288

289-
Stability: 0 - Deprecated
290-
291-
Use `Buffer.isBuffer()` instead.
289+
Stability: 0 - Deprecated: Use [`Buffer.isBuffer()`][] instead.
292290

293291
Returns `true` if the given "object" is a `Buffer`. `false` otherwise.
294292

@@ -538,7 +536,7 @@ Output with timestamp on `stdout`.
538536

539537
## util.print([...])
540538

541-
Stability: 0 - Deprecated: Use `console.log` instead.
539+
Stability: 0 - Deprecated: Use [`console.log()`][] instead.
542540

543541
Deprecated predecessor of `console.log`.
544542

@@ -550,7 +548,7 @@ Deprecated predecessor of `stream.pipe()`.
550548

551549
## util.puts([...])
552550

553-
Stability: 0 - Deprecated: Use console.log() instead.
551+
Stability: 0 - Deprecated: Use [`console.log()`][] instead.
554552

555553
Deprecated predecessor of `console.log`.
556554

@@ -559,3 +557,6 @@ Deprecated predecessor of `console.log`.
559557
[Customizing `util.inspect` colors]: #util_customizing_util_inspect_colors
560558
[here]: #util_customizing_util_inspect_colors
561559
[`Error`]: errors.html#errors_class_error
560+
[`console.log()`]: console.html#console_console_log_data
561+
[`console.error()`]: console.html#console_console_error_data
562+
[`Buffer.isBuffer()`]: buffer.html#buffer_class_method_buffer_isbuffer_obj

0 commit comments

Comments
 (0)