Skip to content

Commit f881789

Browse files
committed
doc: fix some links
PR-URL: #16202 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 971aad1 commit f881789

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

doc/api/assert.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ Primitive values are compared with the [Abstract Equality Comparison][]
4747
Only [enumerable "own" properties][] are considered. The
4848
[`assert.deepEqual()`][] implementation does not test the
4949
[`[[Prototype]]`][prototype-spec] of objects or enumerable own [`Symbol`][]
50-
properties. For such checks, consider using [assert.deepStrictEqual()][]
50+
properties. For such checks, consider using [`assert.deepStrictEqual()`][]
5151
instead. [`assert.deepEqual()`][] can have potentially surprising results. The
5252
following example does not throw an `AssertionError` because the properties on
53-
the [RegExp][] object are not enumerable:
53+
the [`RegExp`][] object are not enumerable:
5454

5555
```js
5656
// WARNING: This does not throw an AssertionError!

doc/api/async_hooks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ respective asynchronous event during a resource's lifetime.
9595
All callbacks are optional. So, for example, if only resource cleanup needs to
9696
be tracked then only the `destroy` callback needs to be passed. The
9797
specifics of all functions that can be passed to `callbacks` is in the section
98-
[`Hook Callbacks`][].
98+
[Hook Callbacks][].
9999

100100
```js
101101
const async_hooks = require('async_hooks');
@@ -637,5 +637,5 @@ constructor.
637637
[`after` callback]: #async_hooks_after_asyncid
638638
[`before` callback]: #async_hooks_before_asyncid
639639
[`destroy` callback]: #async_hooks_before_asyncid
640-
[`Hook Callbacks`]: #async_hooks_hook_callbacks
641640
[`init` callback]: #async_hooks_init_asyncid_type_triggerasyncid_resource
641+
[Hook Callbacks]: #async_hooks_hook_callbacks

doc/api/http2.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ added: v8.5.0
13221322
* `request` {http2.Http2ServerRequest}
13231323
* `response` {http2.Http2ServerResponse}
13241324

1325-
If a [`'request'`][] listener is registered or [`'http2.createServer()'`][] is
1325+
If a [`'request'`][] listener is registered or [`http2.createServer()`][] is
13261326
supplied a callback function, the `'checkContinue'` event is emitted each time
13271327
a request with an HTTP `Expect: 100-continue` is received. If this event is
13281328
not listened for, the server will automatically respond with a status
@@ -1427,7 +1427,7 @@ added: v8.5.0
14271427
* `request` {http2.Http2ServerRequest}
14281428
* `response` {http2.Http2ServerResponse}
14291429

1430-
If a [`'request'`][] listener is registered or [`'http2.createSecureServer()'`][]
1430+
If a [`'request'`][] listener is registered or [`http2.createSecureServer()`][]
14311431
is supplied a callback function, the `'checkContinue'` event is emitted each
14321432
time a request with an HTTP `Expect: 100-continue` is received. If this event
14331433
is not listened for, the server will automatically respond with a status
@@ -2149,7 +2149,7 @@ set on `request.stream`.
21492149
`setTimeout` method will be called on `request.stream.session`.
21502150

21512151
`pause`, `read`, `resume`, and `write` will throw an error with code
2152-
`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [`Http2Session and Sockets`][] for
2152+
`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [Http2Session and Sockets][] for
21532153
more information.
21542154

21552155
All other interactions will be routed directly to the socket. With TLS support,
@@ -2521,7 +2521,7 @@ set on `response.stream`.
25212521
`setTimeout` method will be called on `response.stream.session`.
25222522

25232523
`pause`, `read`, `resume`, and `write` will throw an error with code
2524-
`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [`Http2Session and Sockets`][] for
2524+
`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [Http2Session and Sockets][] for
25252525
more information.
25262526

25272527
All other interactions will be routed directly to the socket.

doc/api/n-api.md

+1
Original file line numberDiff line numberDiff line change
@@ -3680,6 +3680,7 @@ NAPI_EXTERN napi_status napi_run_script(napi_env env,
36803680
[Working with JavaScript Values]: #n_api_working_with_javascript_values
36813681
[Working with JavaScript Values - Abstract Operations]: #n_api_working_with_javascript_values_abstract_operations
36823682

3683+
[`napi_async_init`]: #n_api_napi_async_init
36833684
[`napi_cancel_async_work`]: #n_api_napi_cancel_async_work
36843685
[`napi_close_escapable_handle_scope`]: #n_api_napi_close_escapable_handle_scope
36853686
[`napi_close_handle_scope`]: #n_api_napi_close_handle_scope

0 commit comments

Comments
 (0)