1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:57:56 -07:00

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 d3a7e5f82d
commit cb871ce3e0

View File

@ -2291,7 +2291,7 @@ This would be useful if we wanted to refine the methods of <code>Logger</code>.
</p>
<pre>
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>
<p>