Skip to content

Commit 361b66f

Browse files
committed
Fix accidental format string interpretation
1 parent 8d00270 commit 361b66f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ func run() int {
174174
for i, f := range fields {
175175
if _, exists := columns[int64(i+1)]; exists {
176176
if printedFirstColumn {
177-
fmt.Fprintf(stdout, "\t")
177+
fmt.Fprint(stdout, "\t")
178178
}
179179
printedFirstColumn = true
180-
fmt.Fprintf(stdout, f)
180+
fmt.Fprint(stdout, f)
181181
}
182182
}
183-
fmt.Fprintf(stdout, "\n")
183+
fmt.Fprint(stdout, "\n")
184184
}
185185
if err := scanner.Err(); err != nil {
186186
fmt.Fprintf(stderr, "ERROR: failed to read input: %v\n", err)

0 commit comments

Comments
 (0)