mirror of
https://github.com/golang/go
synced 2024-11-22 00:24:41 -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:
parent
d3a7e5f82d
commit
cb871ce3e0
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user