1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:24:41 -07:00

fix a couple of minor errors

SVN=126938
This commit is contained in:
Rob Pike 2008-07-12 13:56:33 -07:00
parent d0cf215bf2
commit 2fdbf0d595

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package Main
package main
// Send the sequence 2, 3, 4, ... to channel 'ch'.
func Generate(ch *chan> int) {
@ -30,13 +30,13 @@ func Sieve() {
go Generate(ch); // Start Generate() as a subprocess.
for {
prime := <ch;
print "%d\n", prime;
print prime, "\n";
ch1 := new(chan int);
go Filter(ch, ch1, prime);
ch = ch1
}
}
func Main() {
func main() {
Sieve()
}