We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933848b commit 55ecc0bCopy full SHA for 55ecc0b
src/algorithms/math/bits/updateBit.js
@@ -11,6 +11,6 @@ export default function updateBit(number, bitPosition, bitValue) {
11
// Init clear mask.
12
const clearMask = ~(1 << bitPosition);
13
14
- // Cleat bit value and then set it up to required value.
+ // Clear bit value and then set it up to required value.
15
return (number & clearMask) | (bitValueNormalized << bitPosition);
16
}
0 commit comments