Skip to content

Commit 55ecc0b

Browse files
committedJun 27, 2018
Fix typo.
1 parent 933848b commit 55ecc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/algorithms/math/bits/updateBit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export default function updateBit(number, bitPosition, bitValue) {
1111
// Init clear mask.
1212
const clearMask = ~(1 << bitPosition);
1313

14-
// Cleat bit value and then set it up to required value.
14+
// Clear bit value and then set it up to required value.
1515
return (number & clearMask) | (bitValueNormalized << bitPosition);
1616
}

0 commit comments

Comments
 (0)
Please sign in to comment.