From e5cc09a75db2536c836ab4aeedf33a88794a79b9 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Fri, 16 Mar 2012 14:27:11 +1100 Subject: [PATCH] doc: use time.Duration in Effective Go. R=golang-dev, r CC=golang-dev https://golang.org/cl/5841044 --- doc/effective_go.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)