Skip to content

Commit 86d1f76

Browse files
committed
Fix comment
1 parent c736ee0 commit 86d1f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/bitmanipulation/IndexOfRightMostSetBit.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static int indexOfRightMostSetBit(int n) {
3030
// Handle negative numbers by finding the two's complement
3131
if (n < 0) {
3232
n = -n;
33-
n = n & (~n + 1);// Isolate the rightmost set bit
33+
n = n & (~n + 1); // Isolate the rightmost set bit
3434
}
3535

3636
int index = 0;

0 commit comments

Comments
 (0)