From a99e9c5db51cdffdad6e561d456b54ffab03cd1f Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 23 Mar 2012 07:51:16 +1100 Subject: [PATCH] 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 --- ...erns_timing_out_moving_on.html => concurrency_patterns.html} | 0 doc/docs.html | 2 +- doc/progs/timeout1.go | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename doc/articles/{go_concurrency_patterns_timing_out_moving_on.html => concurrency_patterns.html} (100%) diff --git a/doc/articles/go_concurrency_patterns_timing_out_moving_on.html b/doc/articles/concurrency_patterns.html similarity index 100% rename from doc/articles/go_concurrency_patterns_timing_out_moving_on.html rename to doc/articles/concurrency_patterns.html diff --git a/doc/docs.html b/doc/docs.html index a75ae56cf2..709c081528 100644 --- a/doc/docs.html +++ b/doc/docs.html @@ -105,7 +105,7 @@ Guided tours of Go programs.
  • JSON-RPC: a tale of interfaces
  • Go's Declaration Syntax
  • Defer, Panic, and Recover
  • -
  • Go Concurrency Patterns: Timing out, moving on
  • +
  • Go Concurrency Patterns: Timing out, moving on
  • Go Slices: usage and internals
  • A GIF decoder: an exercise in Go interfaces
  • Error Handling and Go
  • 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 }() -- 2.50.0