From 46eee3018b560cf5e613de3ee5066a125106d1fd Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Tue, 22 Dec 2015 15:17:25 -0500 Subject: 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(-) (limited to 'lib/url.js') diff --git a/lib/url.js b/lib/url.js index f576eb8579..4de2fab3ff 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 ? -- cgit v1.2.3