Skip to content

Commit ab5c851

Browse files
committed
corrected comment
1 parent f5bb992 commit ab5c851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/benblack86/binary/BinaryBasics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static void printBinary(int i) {
5555
public static void printBinary2(int i) {
5656
System.out.printf("%12s: ", i);
5757
for(int k = 31; k > -1; k--) {
58-
// shift bit to the most significant position and apply mask
58+
// shift bit to the least significant position and apply mask
5959
System.out.printf("%s", i >> k & 0b1);
6060
}
6161
System.out.printf("\n");

0 commit comments

Comments
 (0)