Skip to content

Commit fe2a59b

Browse files
Yan Huangadamant-pwn
Yan Huang
authored andcommitted
Update bit-manipulation.md
1 parent fbf3a8e commit fe2a59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algebra/bit-manipulation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool isPowerOfTwo(unsigned int n) {
152152
}
153153
```
154154

155-
### Clear the most-right set bit
155+
### Clear the right-most set bit
156156

157157
The expression $n ~\&~ (n-1)$ can be used to turn off the rightmost set bit of a number $n$.
158158
This works because the expression $n-1$ flips all bits after the rightmost set bit of $n$, including the rightmost set bit.

0 commit comments

Comments
 (0)