Fixed bug where line number wasn't updated

master
Aadhavan Srinivasan 4 months ago
parent 81b976bcc7
commit ffae02b62b

@ -172,7 +172,7 @@ func main() {
if *lineNumberFlag { if *lineNumberFlag {
lineNum = 1 lineNum = 1
fmt.Printf(" %*d ", lineNumDigits, lineNum) fmt.Printf(" %*d ", lineNumDigits, lineNum)
lineNum++
} }
for idx, unit := range units { for idx, unit := range units {
unit.print() unit.print()

Loading…
Cancel
Save