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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy