Skip to content

Commit ff5a8a0

Browse files
committed
Bit ops
1 parent 95f585d commit ff5a8a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ REGISTER &= ~((2^N - 1) << X);
208208

209209
And, finally, we want to set a given bit range to the value we want. We
210210
shift that value X positions left, and OR with the current value of the whole
211-
register:
211+
register (in order to retain other bits' values):
212212

213213
```c
214214
REGISTER |= VALUE << X;

0 commit comments

Comments
 (0)