Skip to content

Commit ceccf41

Browse files
author
Adrian Reimann
committed
fixed comment
1 parent 135fbcb commit ceccf41

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

day_16/16-1.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
const OP_MODE_BIT_COUNT = 0;
1212
const OP_MODE_PACKET_COUNT = 1;
1313

14-
//read input (it is only one line in this puzzle
14+
//read input (it is only one line in this puzzle)
1515
$hex_str = "";
1616
$input = fopen("input.txt", "r");
1717
while (($input_line = fgets($input)) !== false) {
1818
$hex_str = trim($input_line);
19-
break;
19+
break; //break right after the first line
2020
}
2121
fclose($input);
2222

day_16/16-2.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
const OP_MODE_BIT_COUNT = 0;
1919
const OP_MODE_PACKET_COUNT = 1;
2020

21-
//read input (it is only one line in this puzzle
21+
//read input (it is only one line in this puzzle)
2222
$hex_str = "";
2323
$input = fopen("input.txt", "r");
2424
while (($input_line = fgets($input)) !== false) {
2525
$hex_str = trim($input_line);
26-
break;
26+
break; //break right after the first line
2727
}
2828
fclose($input);
2929

0 commit comments

Comments
 (0)