diff --git a/doc/effective_go.html b/doc/effective_go.html index 3203a31dfa9..984533706c1 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2357,7 +2357,7 @@ go list.Sort() // run list.Sort in parallel; don't wait for it.
A function literal can be handy in a goroutine invocation.
-func Announce(message string, delay int64) { +func Announce(message string, delay time.Duration) { go func() { time.Sleep(delay) fmt.Println(message)