Skip to content

Commit 40076bf

Browse files
nikolasFishrock123
authored andcommitted
doc: fix spelling error in lib/url.js comment
PR-URL: #4390 Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8039ca0 commit 40076bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/url.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ Url.prototype.resolveObject = function(relative) {
586586
// Put this after the other two cases because it simplifies the booleans
587587
if (psychotic) {
588588
result.hostname = result.host = srcPath.shift();
589-
//occationaly the auth can get stuck only in host
589+
//occasionally the auth can get stuck only in host
590590
//this especially happens in cases like
591591
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
592592
var authInHost = result.host && result.host.indexOf('@') > 0 ?
@@ -668,7 +668,7 @@ Url.prototype.resolveObject = function(relative) {
668668
if (psychotic) {
669669
result.hostname = result.host = isAbsolute ? '' :
670670
srcPath.length ? srcPath.shift() : '';
671-
//occationaly the auth can get stuck only in host
671+
//occasionally the auth can get stuck only in host
672672
//this especially happens in cases like
673673
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
674674
var authInHost = result.host && result.host.indexOf('@') > 0 ?

0 commit comments

Comments
 (0)