From: David Symonds Date: Fri, 16 Mar 2012 03:27:11 +0000 (+1100) Subject: doc: use time.Duration in Effective Go. X-Git-Tag: weekly.2012-03-22~65 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e5cc09a75db2536c836ab4aeedf33a88794a79b9;p=gostls13.git doc: use time.Duration in Effective Go. R=golang-dev, r CC=golang-dev https://golang.org/cl/5841044 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 3203a31dfa..984533706c 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)