summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gwic.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/gwic.go b/gwic.go
index 427ec05..ec7a7e3 100644
--- a/gwic.go
+++ b/gwic.go
@@ -32,8 +32,7 @@ func printWithContext(all []string, ind, ctxlen int) {
slice = append(slice, all[ind+1:ind+ctxlen]...)
}
- fstr := strings.Join(slice, "\t")
- fmt.Fprintf(tw, "%s\n", fstr)
+ fmt.Fprintf(tw, "%s\n", strings.Join(slice, "\t"))
}
var tw *tabwriter.Writer