summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2017-06-17 15:11:45 +0200
committerRoman Reiss <me@silverwind.io>2017-06-19 18:18:56 +0200
commitc474f8898755c827187da2e8e4196dec3c48e6c4 (patch)
tree96d67de1241d4a7cbda7446fceb8ac10d34f2773 /lib/url.js
parent878990498a246488dfe5393ddc89b2b15f395a4d (diff)
downloadandroid-node-v8-c474f8898755c827187da2e8e4196dec3c48e6c4.tar.gz
android-node-v8-c474f8898755c827187da2e8e4196dec3c48e6c4.tar.bz2
android-node-v8-c474f8898755c827187da2e8e4196dec3c48e6c4.zip
lib: fix typos
PR-URL: https://github.com/nodejs/node/pull/13741 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.js b/lib/url.js
index f3ebbec7b1..2c9bc58ab5 100644
--- a/lib/url.js
+++ b/lib/url.js
@@ -449,7 +449,7 @@ function autoEscapeStr(rest) {
var lastEscapedPos = 0;
for (var i = 0; i < rest.length; ++i) {
// Manual switching is faster than using a Map/Object.
- // `escaped` contains substring up to the last escaped cahracter.
+ // `escaped` contains substring up to the last escaped character.
switch (rest.charCodeAt(i)) {
case 9: // '\t'
// Concat if there are ordinary characters in the middle.