Skip to content

Commit 71dd4c1

Browse files
yorkieFishrock123
authored andcommitted
doc: capitalize arguments' type names in url doc
PR-URL: #8489 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 8e28e03 commit 71dd4c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/url.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ The formatting process operates as follows:
202202
added: v0.1.25
203203
-->
204204

205-
* `urlString` {string} The URL string to parse.
206-
* `parseQueryString` {boolean} If `true`, the `query` property will always
205+
* `urlString` {String} The URL string to parse.
206+
* `parseQueryString` {Boolean} If `true`, the `query` property will always
207207
be set to an object returned by the [`querystring`][] module's `parse()`
208208
method. If `false`, the `query` property on the returned URL object will be an
209209
unparsed, undecoded string. Defaults to `false`.
210-
* `slashesDenoteHost` {boolean} If `true`, the first token after the literal
210+
* `slashesDenoteHost` {Boolean} If `true`, the first token after the literal
211211
string `//` and preceding the next `/` will be interpreted as the `host`.
212212
For instance, given `//foo/bar`, the result would be
213213
`{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
@@ -221,8 +221,8 @@ object.
221221
added: v0.1.25
222222
-->
223223

224-
* `from` {string} The Base URL being resolved against.
225-
* `to` {string} The HREF URL being resolved.
224+
* `from` {String} The Base URL being resolved against.
225+
* `to` {String} The HREF URL being resolved.
226226

227227
The `url.resolve()` method resolves a target URL relative to a base URL in a
228228
manner similar to that of a Web browser resolving an anchor tag HREF.

0 commit comments

Comments
 (0)