aboutsummaryrefslogtreecommitdiff
path: root/test/sieve.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-02-24 11:48:19 +1100
committerRob Pike <r@golang.org>2012-02-24 11:48:19 +1100
commit80a9783f842ff5d14fd5e2e5d5a129635a081031 (patch)
tree1ee1d083efadeb7077c17d701a82c5d338f4c30c /test/sieve.go
parentc05c3a9d1180e6d449049d9ed96c46b65837bb29 (diff)
downloadgo-80a9783f842ff5d14fd5e2e5d5a129635a081031.tar.gz
go-80a9783f842ff5d14fd5e2e5d5a129635a081031.zip
test/[n-z]*.go: add documentation
R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/5700056
Diffstat (limited to 'test/sieve.go')
-rw-r--r--test/sieve.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sieve.go b/test/sieve.go
index 31c4ed5c05..0cd120c548 100644
--- a/test/sieve.go
+++ b/test/sieve.go
@@ -1,11 +1,12 @@
// build
-// don't run it - goes forever
-
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// Test basic concurrency: the classic prime sieve.
+// Do not run - loops forever.
+
package main
// Send the sequence 2, 3, 4, ... to channel 'ch'.