From: Peter Newman Date: Fri, 7 Aug 2020 11:40:35 +0000 (+0100) Subject: Fix another typo X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=d92df059f43140f93fd5e4277beb4a48ee998952;p=buffer.git Fix another typo --- diff --git a/test/node/test-buffer-indexof.js b/test/node/test-buffer-indexof.js index 24502c3..dcf150b 100644 --- a/test/node/test-buffer-indexof.js +++ b/test/node/test-buffer-indexof.js @@ -479,7 +479,7 @@ assert.equal(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) { for (var count = 0; n > 0; count++) { n = n & (n - 1); // remove top bit