From: Ben Lynn Date: Tue, 21 Jun 2011 00:55:07 +0000 (+1000) Subject: Effective Go: supplied missing type in variadic function example. X-Git-Tag: weekly.2011-06-23~32 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6be0bdf7bc64037ef45b622123ec3276f6c0618e;p=gostls13.git Effective Go: supplied missing type in variadic function example. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/4595055 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 9a674c72bf..2ecef44f41 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2245,7 +2245,7 @@ we would write job.Logger. This would be useful if we wanted to refine the methods of Logger.

-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))
 }