diff --git a/doc/effective_go.html b/doc/effective_go.html
index 46b105a06b..0efd224a76 100644
--- a/doc/effective_go.html
+++ b/doc/effective_go.html
@@ -1799,6 +1799,15 @@ log to a Job:
job.Log("starting now...");
+The Logger is a regular field of the struct and we can initialize
+it in the usual way.
+
+func NewJob(command string, logger *log.Logger) *Job {
+ return &Job{command, logger}
+}
+
+
If we need to refer to an embedded field directly, the type name of the field,
ignoring the package qualifier, serves as a field name. If we needed to access the
*log.Logger of a Job variable job,
@@ -1806,8 +1815,8 @@ we would write job.Logger.
This would be useful if we wanted to refine the methods of Logger.
-func (job *Job) Logf(format string, v ...) {
- job.Logger.Logf(fmt.Sprintf("%q: %s", job.command, format), v);
+func (job *Job) Logf(format string, args ...) {
+ job.Logger.Logf("%q: %s", job.Command, fmt.Sprintf(format, args));
}