]> Cypherpunks repositories - gostls13.git/commitdiff
Effective Go: supplied missing type in variadic function example.
authorBen Lynn <benlynn@gmail.com>
Tue, 21 Jun 2011 00:55:07 +0000 (10:55 +1000)
committerRob Pike <r@golang.org>
Tue, 21 Jun 2011 00:55:07 +0000 (10:55 +1000)
R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/4595055

doc/effective_go.html

index 9a674c72bfea8380c7399a17fb24c659f4de3c7d..2ecef44f41d826d09c66cb5f5ef386881ec6c579 100644 (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>