From cb871ce3e0f573c51be58deaff7971daa6b5a9eb Mon Sep 17 00:00:00 2001 From: Aaron Kemp Date: Fri, 30 Mar 2012 17:51:24 -0700 Subject: [PATCH] doc/effective_go.html: Add missing '...' for fmt.Sprintf() The '...' was missing on a call to fmt.Sprintf() which would result in the slice being printed instead of the correct result. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5967051 --- doc/effective_go.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index ed777f4bb82..4382729c3c1 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2291,7 +2291,7 @@ This would be useful if we wanted to refine the methods of Logger.

 func (job *Job) Logf(format string, args ...interface{}) {
-    job.Logger.Logf("%q: %s", job.Command, fmt.Sprintf(format, args))
+    job.Logger.Logf("%q: %s", job.Command, fmt.Sprintf(format, args...))
 }