From abb17cc6c1ece562c9b1f5e5bc4a4157eb11cf6e Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Tue, 22 Dec 2015 15:17:25 -0500 Subject: [PATCH] doc: fix spelling error in lib/url.js comment PR-URL: https://github.com/nodejs/node/pull/4390 Reviewed-By: Stephen Belanger Reviewed-By: Myles Borins Reviewed-By: James M Snell --- lib/url.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/url.js b/lib/url.js index 45155fee93..6489d6327d 100644 --- a/lib/url.js +++ b/lib/url.js @@ -586,7 +586,7 @@ Url.prototype.resolveObject = function(relative) { // Put this after the other two cases because it simplifies the booleans if (psychotic) { result.hostname = result.host = srcPath.shift(); - //occationaly the auth can get stuck only in host + //occasionally the auth can get stuck only in host //this especially happens in cases like //url.resolveObject('mailto:local1@domain1', 'local2@domain2') var authInHost = result.host && result.host.indexOf('@') > 0 ? @@ -668,7 +668,7 @@ Url.prototype.resolveObject = function(relative) { if (psychotic) { result.hostname = result.host = isAbsolute ? '' : srcPath.length ? srcPath.shift() : ''; - //occationaly the auth can get stuck only in host + //occasionally the auth can get stuck only in host //this especially happens in cases like //url.resolveObject('mailto:local1@domain1', 'local2@domain2') var authInHost = result.host && result.host.indexOf('@') > 0 ?