Skip to content

Commit 4b9773e

Browse files
vsemozhetbytMylesBorins
authored andcommittedApr 16, 2018
doc: fix some links
Backport-PR-URL: #19447 PR-URL: #14400 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 3f3eaf9 commit 4b9773e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎doc/api/dns.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ added: v0.1.27
175175
- `rrtype` {string} Resource record type. Default: `'A'`.
176176
- `callback` {Function}
177177
- `err` {Error}
178-
- `records` {string[] | Object[] | string[][] | Object}
178+
- `records` {string[] | Object[] | Object}
179179

180180
Uses the DNS protocol to resolve a hostname (e.g. `'nodejs.org'`) into an array
181181
of the resource records. The `callback` function has arguments
@@ -362,7 +362,7 @@ added: v0.1.27
362362
- `hostname` {string}
363363
- `callback` {Function}
364364
- `err` {Error}
365-
- `records` {string[][]}
365+
- `records` {string[]}
366366

367367
Uses the DNS protocol to resolve text queries (`TXT` records) for the
368368
`hostname`. The `records` argument passed to the `callback` function is a

‎doc/api/n-api.md

+1
Original file line numberDiff line numberDiff line change
@@ -3204,6 +3204,7 @@ support it:
32043204
[`napi_queue_async_work`]: #n_api_napi_queue_async_work
32053205
[`napi_reference_ref`]: #n_api_napi_reference_ref
32063206
[`napi_reference_unref`]: #n_api_napi_reference_unref
3207+
[`napi_throw`]: #n_api_napi_throw
32073208
[`napi_throw_error`]: #n_api_napi_throw_error
32083209
[`napi_throw_range_error`]: #n_api_napi_throw_range_error
32093210
[`napi_throw_type_error`]: #n_api_napi_throw_type_error

‎doc/guides/writing-tests.md

+5-6
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**
@@ -252,9 +252,9 @@ assert.throws(
252252
For performance considerations, we only use a selected subset of ES.Next
253253
features in JavaScript code in the `lib` directory. However, when writing
254254
tests, for the ease of backporting, it is encouraged to use those ES.Next
255-
features that can be used directly without a flag in [all maintained branches]
256-
(https://github.com/nodejs/lts). [node.green](http://node.green/) lists
257-
available features in each release.
255+
features that can be used directly without a flag in
256+
[all maintained branches][]. [node.green][] lists available features
257+
in each release.
258258

259259
For example:
260260

@@ -279,8 +279,7 @@ functions worked correctly with the `beforeExit` event, then it might be named
279279
### Web Platform Tests
280280

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

286285
```js

0 commit comments

Comments
 (0)
Please sign in to comment.