Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-06-07 08:06:34 +0300
committerRich Trott <rtrott@gmail.com>2020-06-10 15:31:21 +0300
commit0f9d474c524e5132423a96db05d2b2541fcda121 (patch)
treee44710de6b6c2b9488e52c59c485c09512c300ff /doc/api/url.md
parent362e4a1aec46f386b7bc5a1b3493c690976d9105 (diff)
doc: standardize constructor doc header layout
Our docs use a mixture of _Constructor: `new Fhqwhgads()`_ in some headers and only _`new Fhqwhgads()`_ in other headers. The latter is about three times as common, so let's standardize on that. PR-URL: https://github.com/nodejs/node/pull/33781 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r--doc/api/url.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/url.md b/doc/api/url.md
index 3687ca73c53..2fddd749d0d 100644
--- a/doc/api/url.md
+++ b/doc/api/url.md
@@ -89,7 +89,7 @@ using the `delete` keyword on any properties of `URL` objects (e.g. `delete
myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still
return `true`.
-#### Constructor: `new URL(input[, base])`
+#### `new URL(input[, base])`
* `input` {string} The absolute or relative input URL to parse. If `input`
is relative, then `base` is required. If `input` is absolute, the `base`
@@ -618,11 +618,11 @@ console.log(myURL.href);
// Prints https://example.org/?a=b&a=c
```
-#### Constructor: `new URLSearchParams()`
+#### `new URLSearchParams()`
Instantiate a new empty `URLSearchParams` object.
-#### Constructor: `new URLSearchParams(string)`
+#### `new URLSearchParams(string)`
* `string` {string} A query string
@@ -643,7 +643,7 @@ console.log(params.toString());
// Prints 'user=abc&query=xyz'
```
-#### Constructor: `new URLSearchParams(obj)`
+#### `new URLSearchParams(obj)`
<!-- YAML
added:
- v7.10.0
@@ -670,7 +670,7 @@ console.log(params.toString());
// Prints 'user=abc&query=first%2Csecond'
```
-#### Constructor: `new URLSearchParams(iterable)`
+#### `new URLSearchParams(iterable)`
<!-- YAML
added:
- v7.10.0
@@ -1359,7 +1359,7 @@ console.log(myURL.origin);
[`TypeError`]: errors.html#errors_class_typeerror
[`URLSearchParams`]: #url_class_urlsearchparams
[`array.toString()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString
-[`new URL()`]: #url_constructor_new_url_input_base
+[`new URL()`]: #url_new_url_input_base
[`querystring`]: querystring.html
[`require('url').format()`]: #url_url_format_url_options
[`url.domainToASCII()`]: #url_url_domaintoascii_domain