summaryrefslogtreecommitdiff
path: root/test/chan/sieve2.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-02-19 17:44:02 +1100
committerRob Pike <r@golang.org>2012-02-19 17:44:02 +1100
commitacae2b643ab1c779b0363f03ec14e7bcd22bf12f (patch)
tree65118476a76c3320494b4d494847e7a19808df67 /test/chan/sieve2.go
parent7daf4ad9d1df5ba715f327270b6ed7f0ce339bdb (diff)
downloadgo-acae2b643ab1c779b0363f03ec14e7bcd22bf12f.tar.gz
test/chan: document tests
R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5677094
Diffstat (limited to 'test/chan/sieve2.go')
-rw-r--r--test/chan/sieve2.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/chan/sieve2.go b/test/chan/sieve2.go
index 95bf10a61..09e5c527b 100644
--- a/test/chan/sieve2.go
+++ b/test/chan/sieve2.go
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// Test concurrency primitives: prime sieve of Eratosthenes.
+
// Generate primes up to 100 using channels, checking the results.
// This sieve is Eratosthenesque and only considers odd candidates.
// See discussion at <http://blog.onideas.ws/eratosthenes.go>.