diff options
author | Ben Lynn <benlynn@gmail.com> | 2011-06-21 10:55:07 +1000 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-06-21 10:55:07 +1000 |
commit | 6be0bdf7bc64037ef45b622123ec3276f6c0618e (patch) | |
tree | f8529bab95754a30965754667746ae322cf7d4f4 | |
parent | 5d6f118f23a7e111289827d5763bdc3d997ef99d (diff) | |
download | go-6be0bdf7bc64037ef45b622123ec3276f6c0618e.tar.gz go-6be0bdf7bc64037ef45b622123ec3276f6c0618e.zip |
Effective Go: supplied missing type in variadic function example.
R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/4595055
-rw-r--r-- | doc/effective_go.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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> |