Skip to content

Commit bf2d5a7

Browse files
lholmquisttargos
authored andcommitted
doc: add a link to the throw-deprecations flag
Motivation: On the deprecated api's doc, the --pending-deprecation flag is a clickable link to the command line docs. This makes the --throw-deprecation flag, which is described in the next paragraph also a link to keep things consistent PR-URL: #28625 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 171c8f4 commit bf2d5a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/deprecations.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ are explicitly labeled as such in the
2626

2727
A Runtime deprecation will, by default, generate a process warning that will
2828
be printed to `stderr` the first time the deprecated API is used. When the
29-
`--throw-deprecation` command-line flag is used, a Runtime deprecation will
29+
[`--throw-deprecation`][] command-line flag is used, a Runtime deprecation will
3030
cause an error to be thrown.
3131

3232
An End-of-Life deprecation is used when functionality is or will soon be removed
@@ -2493,6 +2493,7 @@ Passing a callback to [`worker.terminate()`][] is deprecated. Use the returned
24932493
24942494
[`--http-parser=legacy`]: cli.html#cli_http_parser_library
24952495
[`--pending-deprecation`]: cli.html#cli_pending_deprecation
2496+
[`--throw-deprecation`]: cli.html#cli_throw_deprecation
24962497
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
24972498
[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array
24982499
[`Buffer.from(buffer)`]: buffer.html#buffer_class_method_buffer_from_buffer

0 commit comments

Comments
 (0)