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 }()