summaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-indexof.js
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2018-01-06 19:34:27 +0100
committerTobias Nießen <tniessen@tnie.de>2018-01-11 16:49:38 +0100
commite890344d18fdc4ad096d2c5020a7101bc355ad8b (patch)
tree86c753dc24aa19f6dfc9cb31d22160e7aa6207a1 /test/parallel/test-buffer-indexof.js
parent61b4d60c5d9694e79069b1680b3736c96a5de501 (diff)
downloadandroid-node-v8-e890344d18fdc4ad096d2c5020a7101bc355ad8b.tar.gz
android-node-v8-e890344d18fdc4ad096d2c5020a7101bc355ad8b.tar.bz2
android-node-v8-e890344d18fdc4ad096d2c5020a7101bc355ad8b.zip
test: fix spelling in test case comments
PR-URL: https://github.com/nodejs/node/pull/18018 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'test/parallel/test-buffer-indexof.js')
-rw-r--r--test/parallel/test-buffer-indexof.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-buffer-indexof.js b/test/parallel/test-buffer-indexof.js
index dbf84cd6ac..08d640b1dc 100644
--- a/test/parallel/test-buffer-indexof.js
+++ b/test/parallel/test-buffer-indexof.js
@@ -554,7 +554,7 @@ assert.strictEqual(511, longBufferString.lastIndexOf(pattern, 1534));
// "yolo swag swag yolo swag yolo yolo swag" ..., goes on for about 5MB.
// This is hard to search because it all looks similar, but never repeats.
-// countBits returns the number of bits in the binary reprsentation of n.
+// countBits returns the number of bits in the binary representation of n.
function countBits(n) {
let count;
for (count = 0; n > 0; count++) {