Skip to content

Commit 29b6e8f

Browse files
committed
Fix tabs instead of spaces in comments
Fixing tabs instead of spaces in comments
1 parent 0ef3e6b commit 29b6e8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

bit_manipulation/multibit_manipulation.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@
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
23-
Either [0,1] for single bit, or bit mask, bit_length(value) <= bitlen.
23+
Either [0,1] for single bit, or int value for multibit,
24+
bit_length(value) <= bitlen.
2425
2526
bitlen:int
2627
The effective mask length, spec. leading zeros
27-
( bitlen 4 value 1 -> 0001 )
28+
( bitlen 4 value 1 -> 0001 )
2829
2930
The bitwise expressions may look convoluted, but basically, there are
3031
just three parts: left-hand side, value, right-hand side.
@@ -230,6 +231,7 @@ def multibit_remove(bint: int, index: int, bit_len: int) -> int:
230231

231232

232233
if __name__ == "__main__":
234+
233235
import doctest
234236

235237
doctest.testmod()

0 commit comments

Comments
 (0)