1
0
mirror of https://github.com/golang/go synced 2024-11-15 04:40:28 -07:00

[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

»»»
This commit is contained in:
Aaron Kemp 2012-03-30 17:51:24 -07:00 committed by Robert Griesemer
parent d9b3c09097
commit 465aef6f86

View File

@ -2291,7 +2291,7 @@ This would be useful if we wanted to refine the methods of <code>Logger</code>.
</p> </p>
<pre> <pre>
func (job *Job) Logf(format string, args ...interface{}) { 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...))
} }
</pre> </pre>
<p> <p>