Skip to content

Commit 5bea3a7

Browse files
committed
Fix comments
1 parent 9627eab commit 5bea3a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ public static Optional<Integer> findHighestSetBit(int num) {
4040
}
4141

4242
if (num == 0) {
43-
return Optional.empty(); // No bits are set in 0
43+
return Optional.empty();
4444
}
4545

4646
int position = 0;
47-
48-
// Right-shift the number until it becomes zero, counting the number of shifts
4947
while (num > 0) {
5048
num >>= 1;
5149
position++;

0 commit comments

Comments
 (0)