Skip to content

Commit 4dabcdf

Browse files
logical and -> bitwise and
1 parent d55a152 commit 4dabcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function leftPad (str, len, ch) {
137137
len = len - str.length;
138138

139139
while (true) {
140-
// This needs a comment, why a logical and here?
140+
// This needs a comment, why a bitwise and here?
141141
if (len & 1) pad += ch;
142142
// This needs a comment, why a bit shift here?
143143
len >>= 1;

0 commit comments

Comments
 (0)