Fix typo.

This commit is contained in:
Oleksii Trekhleb
2018-06-27 18:59:25 +03:00
parent 933848b215
commit 55ecc0b313

View File

@ -11,6 +11,6 @@ export default function updateBit(number, bitPosition, bitValue) {
// Init clear mask.
const clearMask = ~(1 << bitPosition);
// Cleat bit value and then set it up to required value.
// Clear bit value and then set it up to required value.
return (number & clearMask) | (bitValueNormalized << bitPosition);
}