From e88566170015c68a043bd3bf5bfa112d59097a26 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Thu, 20 Jul 2017 21:01:51 +0300 Subject: [PATCH] doc: fix some links PR-URL: https://github.com/nodejs/node/pull/14400 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Yuta Hiroto Reviewed-By: Khaidi Chu Reviewed-By: James M Snell --- doc/api/dns.md | 4 ++-- doc/api/n-api.md | 1 + doc/guides/writing-tests.md | 11 +++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/api/dns.md b/doc/api/dns.md index 7fce91970aa10e..1052a46c200f3f 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -175,7 +175,7 @@ added: v0.1.27 - `rrtype` {string} Resource record type. Default: `'A'`. - `callback` {Function} - `err` {Error} - - `records` {string[] | Object[] | string[][] | Object} + - `records` {string[] | Object[] | Object} Uses the DNS protocol to resolve a hostname (e.g. `'nodejs.org'`) into an array of the resource records. The `callback` function has arguments @@ -362,7 +362,7 @@ added: v0.1.27 - `hostname` {string} - `callback` {Function} - `err` {Error} - - `records` {string[][]} + - `records` {string[]} Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 8aac594f8323cd..91780846ff2e4a 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -3204,6 +3204,7 @@ support it: [`napi_queue_async_work`]: #n_api_napi_queue_async_work [`napi_reference_ref`]: #n_api_napi_reference_ref [`napi_reference_unref`]: #n_api_napi_reference_unref +[`napi_throw`]: #n_api_napi_throw [`napi_throw_error`]: #n_api_napi_throw_error [`napi_throw_range_error`]: #n_api_napi_throw_range_error [`napi_throw_type_error`]: #n_api_napi_throw_type_error diff --git a/doc/guides/writing-tests.md b/doc/guides/writing-tests.md index aac098640aec9e..cc87886656c06d 100644 --- a/doc/guides/writing-tests.md +++ b/doc/guides/writing-tests.md @@ -92,7 +92,7 @@ The test checks functionality in the `http` module. Most tests use the `assert` module to confirm expectations of the test. The require statements are sorted in -[ASCII](http://man7.org/linux/man-pages/man7/ascii.7.html) order (digits, upper +[ASCII][] order (digits, upper case, `_`, lower case). ### **Lines 10-21** @@ -252,9 +252,9 @@ assert.throws( For performance considerations, we only use a selected subset of ES.Next features in JavaScript code in the `lib` directory. However, when writing tests, for the ease of backporting, it is encouraged to use those ES.Next -features that can be used directly without a flag in [all maintained branches] -(https://github.com/nodejs/lts). [node.green](http://node.green/) lists -available features in each release. +features that can be used directly without a flag in +[all maintained branches][]. [node.green][] lists available features +in each release. For example: @@ -279,8 +279,7 @@ functions worked correctly with the `beforeExit` event, then it might be named ### Web Platform Tests Some of the tests for the WHATWG URL implementation (named -`test-whatwg-url-*.js`) are imported from the -[Web Platform Tests Project](https://github.com/w3c/web-platform-tests/tree/master/url). +`test-whatwg-url-*.js`) are imported from the [Web Platform Tests Project][]. These imported tests will be wrapped like this: ```js