diff options
| -rw-r--r-- | src/day03.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/day03.cpp b/src/day03.cpp index 74400db..b266f59 100644 --- a/src/day03.cpp +++ b/src/day03.cpp | |||
| @@ -115,9 +115,7 @@ part2() // NOLINT | |||
| 115 | 115 | ||
| 116 | auto& line = lines[row]; | 116 | auto& line = lines[row]; |
| 117 | 117 | ||
| 118 | auto digit = line[col]; | 118 | if ( !is_digit(line[col]) ) { |
| 119 | |||
| 120 | if ( !is_digit(digit) ) { | ||
| 121 | return false; | 119 | return false; |
| 122 | } | 120 | } |
| 123 | 121 | ||
