aboutsummaryrefslogtreecommitdiff
path: root/src/lib/template/template_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/template/template_test.go')
-rw-r--r--src/lib/template/template_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/template/template_test.go b/src/lib/template/template_test.go
index fb931615ea..9a81d274c9 100644
--- a/src/lib/template/template_test.go
+++ b/src/lib/template/template_test.go
@@ -54,8 +54,8 @@ func plus1(v interface{}) string {
return fmt.Sprint(i + 1);
}
-func writer(f func(interface{}) string) (func(io.Write, interface{}, string)) {
- return func(w io.Write, v interface{}, format 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));
}
}