summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
authorNik Nyby <nnyby@columbia.edu>2015-12-22 15:17:25 -0500
committerJames M Snell <jasnell@gmail.com>2015-12-30 12:01:47 -0800
commit46eee3018b560cf5e613de3ee5066a125106d1fd (patch)
tree10bb95d491149f1a58fd94440719ae0508756cb3 /lib/url.js
parent3e740caaf368dbfcc8c59cc178258c4865af991c (diff)
downloadandroid-node-v8-46eee3018b560cf5e613de3ee5066a125106d1fd.tar.gz
android-node-v8-46eee3018b560cf5e613de3ee5066a125106d1fd.tar.bz2
android-node-v8-46eee3018b560cf5e613de3ee5066a125106d1fd.zip
doc: fix spelling error in lib/url.js comment
PR-URL: https://github.com/nodejs/node/pull/4390 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js4
1 files changed, 2 insertions, 2 deletions
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 ?