Skip to content

Commit b83adfd

Browse files
authored
Update is-power-of-two.md
Fixed code error to also match comments.
1 parent fde22e6 commit b83adfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/java/bit-manipulation/is-power-of-two.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ public static boolean isPowerOfTwo(int number) {
1212

1313
// Usage:
1414
int number = 16;
15-
System.out.println(isPowerOfTwo(5)); // true (2^4)
16-
```
15+
System.out.println(isPowerOfTwo(number)); // true (2^4)
16+
```

0 commit comments

Comments
 (0)