From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001
From: Michael Stapelberg
Date: Mon, 4 Mar 2013 21:27:36 +0100
Subject: Imported Upstream version 1.1~hg20130304
---
doc/articles/concurrency_patterns.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'doc/articles/concurrency_patterns.html')
diff --git a/doc/articles/concurrency_patterns.html b/doc/articles/concurrency_patterns.html
index 63c8cd59e..62168b840 100644
--- a/doc/articles/concurrency_patterns.html
+++ b/doc/articles/concurrency_patterns.html
@@ -17,7 +17,7 @@ and launching a goroutine that sleeps before sending on the channel:
We can then use a select
statement to receive from either
ch
or timeout
. If nothing arrives on ch
after one second, the timeout case is selected and the attempt to read from
-ch is abandoned.
+ch
is abandoned.
{{code "/doc/progs/timeout1.go" `/select {/` `/STOP/`}}
@@ -64,7 +64,7 @@ could fail since no one is ready.
-This problem is a textbook of example of what is known as a
+This problem is a textbook example of what is known as a
race condition, but
the fix is trivial. We just make sure to buffer the channel ch
(by
adding the buffer length as the second argument to make),
--
cgit v1.2.3