Skip to content

Commit 0ef3e6b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 93610d9 commit 0ef3e6b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bit_manipulation/multibit_manipulation.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
1515
index:int
1616
The offset into the bit position from right,
17-
0b010111 -> list [1,1,1,0,1,0]. big-endian -> little-endian
17+
0b010111 -> list [1,1,1,0,1,0]. big-endian -> little-endian
1818
For inserts, index is the position to the right of index,
19-
index 0 -> right of rightmost bit.
19+
index 0 -> right of rightmost bit.
2020
For gets, sets and removes, it is the position of the bit itself.
2121
2222
value:int
2323
Either [0,1] for single bit, or bit mask, bit_length(value) <= bitlen.
2424
2525
bitlen:int
2626
The effective mask length, spec. leading zeros
27-
( bitlen 4 value 1 -> 0001 )
27+
( bitlen 4 value 1 -> 0001 )
2828
2929
The bitwise expressions may look convoluted, but basically, there are
3030
just three parts: left-hand side, value, right-hand side.
@@ -230,7 +230,6 @@ def multibit_remove(bint: int, index: int, bit_len: int) -> int:
230230

231231

232232
if __name__ == "__main__":
233-
234233
import doctest
235234

236235
doctest.testmod()

0 commit comments

Comments
 (0)