Commit e5cc09a7 authored by David Symonds's avatar David Symonds

doc: use time.Duration in Effective Go.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5841044
parent e57a6167
......@@ -2357,7 +2357,7 @@ go list.Sort() // run list.Sort in parallel; don't wait for it.
<p>
A function literal can be handy in a goroutine invocation.
<pre>
func Announce(message string, delay int64) {
func Announce(message string, delay time.Duration) {
go func() {
time.Sleep(delay)
fmt.Println(message)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment