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

Effective Go: supplied missing type in variadic function example.

R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/4595055
This commit is contained in:
Ben Lynn 2011-06-21 10:55:07 +10:00 committed by Rob Pike
parent 5d6f118f23
commit 6be0bdf7bc

View File

@ -2245,7 +2245,7 @@ we would write <code>job.Logger</code>.
This would be useful if we wanted to refine the methods of <code>Logger</code>.
</p>
<pre>
func (job *Job) Logf(format string, args ...) {
func (job *Job) Logf(format string, args ...interface{}) {
job.Logger.Logf("%q: %s", job.Command, fmt.Sprintf(format, args))
}
</pre>