From: Aaron Kemp Date: Sat, 31 Mar 2012 00:51:24 +0000 (-0700) Subject: [release-branch.go1] doc/effective_go.html: Add missing '...' for fmt.Sprintf() X-Git-Tag: go1.0.1~54 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=465aef6f86c1de7ea358bf7fe473c3298ca4b818;p=gostls13.git [release-branch.go1] doc/effective_go.html: Add missing '...' for fmt.Sprintf() ««« backport 8434de733c20 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 »»» --- diff --git a/doc/effective_go.html b/doc/effective_go.html index ed777f4bb8..4382729c3c 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...))
 }