summaryrefslogtreecommitdiff
path: root/src/pkg/template/template_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/template/template_test.go')
-rw-r--r--src/pkg/template/template_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/template/template_test.go b/src/pkg/template/template_test.go
index becfa0f0b..6fbc14726 100644
--- a/src/pkg/template/template_test.go
+++ b/src/pkg/template/template_test.go
@@ -59,7 +59,9 @@ func plus1(v interface{}) string {
}
func writer(f func(interface{}) string) (func(io.Writer, interface{}, string)) {
- return func(w io.Writer, v interface{}, format string) { io.WriteString(w, f(v)) };
+ return func(w io.Writer, v interface{}, format string) {
+ io.WriteString(w, f(v));
+ };
}