Skip to content

Commit 6c6da38

Browse files
vsemozhetbytaddaleax
authored andcommitted
doc: fix some links
PR-URL: #14400 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0418a70 commit 6c6da38

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

doc/api/dns.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ added: v0.1.27
191191
- `rrtype` {string} Resource record type. Default: `'A'`.
192192
- `callback` {Function}
193193
- `err` {Error}
194-
- `records` {string[] | Object[] | string[][] | Object}
194+
- `records` {string[] | Object[] | Object}
195195

196196
Uses the DNS protocol to resolve a hostname (e.g. `'nodejs.org'`) into an array
197197
of the resource records. The `callback` function has arguments
@@ -422,7 +422,7 @@ added: v0.1.27
422422
- `hostname` {string}
423423
- `callback` {Function}
424424
- `err` {Error}
425-
- `addresses` {string[][]}
425+
- `addresses` {string[]}
426426

427427
Uses the DNS protocol to resolve text queries (`TXT` records) for the
428428
`hostname`. The `addresses` argument passed to the `callback` function is
@@ -436,7 +436,7 @@ treated separately.
436436
- `hostname` {string}
437437
- `callback` {Function}
438438
- `err` {Error}
439-
- `ret` {Object[][]}
439+
- `ret` {Object[]}
440440

441441
Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
442442
The `ret` argument passed to the `callback` function will be an array containing

doc/api/n-api.md

+1
Original file line numberDiff line numberDiff line change
@@ -3160,6 +3160,7 @@ support it:
31603160
[`napi_queue_async_work`]: #n_api_napi_queue_async_work
31613161
[`napi_reference_ref`]: #n_api_napi_reference_ref
31623162
[`napi_reference_unref`]: #n_api_napi_reference_unref
3163+
[`napi_throw`]: #n_api_napi_throw
31633164
[`napi_throw_error`]: #n_api_napi_throw_error
31643165
[`napi_throw_range_error`]: #n_api_napi_throw_range_error
31653166
[`napi_throw_type_error`]: #n_api_napi_throw_type_error

doc/api/v8.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ by subclasses.
289289
* `flag` {boolean}
290290

291291
Indicate whether to treat `TypedArray` and `DataView` objects as
292-
host objects, i.e. pass them to [`serializer._writeHostObject`][].
292+
host objects, i.e. pass them to [`serializer._writeHostObject()`][].
293293

294294
The default is not to treat those objects as host objects.
295295

doc/guides/writing-tests.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ The test checks functionality in the `http` module.
9292
Most tests use the `assert` module to confirm expectations of the test.
9393

9494
The require statements are sorted in
95-
[ASCII](http://man7.org/linux/man-pages/man7/ascii.7.html) order (digits, upper
95+
[ASCII][] order (digits, upper
9696
case, `_`, lower case).
9797

9898
### **Lines 10-21**
@@ -231,9 +231,9 @@ assert.throws(
231231
For performance considerations, we only use a selected subset of ES.Next
232232
features in JavaScript code in the `lib` directory. However, when writing
233233
tests, for the ease of backporting, it is encouraged to use those ES.Next
234-
features that can be used directly without a flag in [all maintained branches]
235-
(https://github.com/nodejs/lts). [node.green](http://node.green/) lists
236-
available features in each release.
234+
features that can be used directly without a flag in
235+
[all maintained branches][]. [node.green][] lists available features
236+
in each release.
237237

238238
For example:
239239

@@ -258,8 +258,7 @@ functions worked correctly with the `beforeExit` event, then it might be named
258258
### Web Platform Tests
259259

260260
Some of the tests for the WHATWG URL implementation (named
261-
`test-whatwg-url-*.js`) are imported from the
262-
[Web Platform Tests Project](https://github.com/w3c/web-platform-tests/tree/master/url).
261+
`test-whatwg-url-*.js`) are imported from the [Web Platform Tests Project][].
263262
These imported tests will be wrapped like this:
264263

265264
```js
@@ -332,13 +331,17 @@ $ make cctest
332331
```
333332

334333
### Node test fixture
335-
There is a [test fixture] named `node_test_fixture.h` which can be included by
334+
There is a [test fixture][] named `node_test_fixture.h` which can be included by
336335
unit tests. The fixture takes care of setting up the Node.js environment
337336
and tearing it down after the tests have finished.
338337

339338
It also contains a helper to create arguments to be passed into Node.js. It
340339
will depend on what is being tested if this is required or not.
341340

341+
[ASCII]: http://man7.org/linux/man-pages/man7/ascii.7.html
342342
[Google Test]: https://github.com/google/googletest
343-
[Test fixture]: https://github.com/google/googletest/blob/master/googletest/docs/Primer.md#test-fixtures-using-the-same-data-configuration-for-multiple-tests
343+
[Web Platform Tests Project]: https://github.com/w3c/web-platform-tests/tree/master/url
344344
[`common` module]: https://github.com/nodejs/node/blob/master/test/common/README.md
345+
[all maintained branches]: https://github.com/nodejs/lts
346+
[node.green]: http://node.green/
347+
[test fixture]: https://github.com/google/googletest/blob/master/googletest/docs/Primer.md#test-fixtures-using-the-same-data-configuration-for-multiple-tests

0 commit comments

Comments
 (0)