diff options
| author | Rob Pike <r@golang.org> | 2012-03-23 07:51:16 +1100 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2012-03-23 07:51:16 +1100 |
| commit | a99e9c5db51cdffdad6e561d456b54ffab03cd1f (patch) | |
| tree | 6c2fff4d214711f9c6eea7c049eb03ffe7867f50 /doc/progs | |
| parent | d12f1ff7ad6ce477819d2e3ba596390ca9aa568a (diff) | |
| download | go-git-a99e9c5db51cdffdad6e561d456b54ffab03cd1f.tar.gz | |
doc/articles: rename concurrency patterns article
The old name, automatically generated, was ludicrously verbose.
Also clean up an example to use time.Second.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5876051
Diffstat (limited to 'doc/progs')
| -rw-r--r-- | doc/progs/timeout1.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/progs/timeout1.go b/doc/progs/timeout1.go index a6c95624c8..5221770ec6 100644 --- a/doc/progs/timeout1.go +++ b/doc/progs/timeout1.go @@ -11,7 +11,7 @@ func Timeout() { ch := make(chan bool, 1) timeout := make(chan bool, 1) go func() { - time.Sleep(1e9) // one second + time.Sleep(1 * time.Second) timeout <- true }() |
