Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit ef51d31

Browse files
Update README.md
1 parent 74b313d commit ef51d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bit_operations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def convert_to_hex(num: int) -> str:
148148
- `OR` and `AND`: symmetrical operations.
149149
- `XOR`: when the corresponding bits of the two numbers are the same, the result is `1`.
150150
- negation is unary: just flips the bit.
151-
- left shift operation, `<<`, all binary bits are shift to the left (the high bits are discarded, and the low bits are filled with 0). for left shift operations, arithmetic shift and logical shift are the same.
151+
- left shift operation, `<<`, all binary bits are shifted to the left (the high bits are discarded, and the low bits are filled with 0). for left shift operations, arithmetic shift and logical shift are the same.
152152
- right shift operation, `>>`, all binary bits are shift to the right (low bits are discarded). how the high bits get filled differs between arithmetic shift and logical shift:
153153
- when shifting right arithmetically, the high bits are filled with the highest bit.
154154
- when shifting right logically, the high bits are filled with `0`.

0 commit comments

Comments
 (0)