Skip to content

Commit

Permalink
Merge pull request #250 from xFrann/xFrann-patch-1
Browse files Browse the repository at this point in the history
Update is-power-of-two.md
  • Loading branch information
Mathys-Gasnier authored Jan 31, 2025
2 parents 4c23812 + b83adfd commit d9bdf59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/java/bit-manipulation/is-power-of-two.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ public static boolean isPowerOfTwo(int number) {

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

0 comments on commit d9bdf59

Please sign in to comment.