benchmark,doc,lib: capitalize more comments

PR-URL: https://github.com/nodejs/node/pull/26849
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
Ruben Bridgewater 2019-03-22 03:44:26 +01:00
parent fd992e6e36
commit b08a867d60
No known key found for this signature in database
GPG key ID: F07496B3EB3C1762
232 changed files with 466 additions and 473 deletions

View file

@ -258,7 +258,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
rest = rest.slice(proto.length);
}
// figure out if it's got a host
// Figure out if it's got a host
// user@server is *always* interpreted as a hostname, and url
// resolution will treat //foo/bar as host=foo,path=bar because that's
// how the browser resolves relative URLs.
@ -448,7 +448,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
this.pathname = '/';
}
// to support http.request
// To support http.request
if (this.pathname || this.search) {
const p = this.pathname || '';
const s = this.search || '';
@ -746,7 +746,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
result.auth = relative.auth;
result.hostname = relative.hostname || relative.host;
result.port = relative.port;
// to support http.request
// To support http.request
if (result.pathname || result.search) {
var p = result.pathname || '';
var s = result.search || '';
@ -819,7 +819,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
result.search = relative.search;
result.query = relative.query;
} else if (relative.search !== null && relative.search !== undefined) {
// just pull out the search.
// Just pull out the search.
// like href='?foo'.
// Put this after the other two cases because it simplifies the booleans
if (noLeadingSlashes) {
@ -846,8 +846,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
}
if (!srcPath.length) {
// no path at all. easy.
// we've already handled the other stuff above.
// No path at all. All other things were already handled above.
result.pathname = null;
// To support http.request
if (result.search) {