mirror of
https://github.com/golang/go
synced 2024-07-19 19:44:12 +00:00
- fixed a test
- added extra basic type aliases - added select statement SVN=117448
This commit is contained in:
parent
d4d19fad2f
commit
76abea7c6d
|
@ -30,7 +30,7 @@ func Sieve() {
|
|||
go Generate(ch); // Start Generate() as a subprocess.
|
||||
for {
|
||||
prime := <ch;
|
||||
printf("%d\n", prime);
|
||||
print "%d\n", prime;
|
||||
ch1 := new(chan int);
|
||||
go Filter(ch, ch1, prime);
|
||||
ch = ch1
|
||||
|
|
Loading…
Reference in a new issue