mirror of
https://github.com/golang/go
synced 2024-09-04 23:44:16 +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.
|
go Generate(ch); // Start Generate() as a subprocess.
|
||||||
for {
|
for {
|
||||||
prime := <ch;
|
prime := <ch;
|
||||||
printf("%d\n", prime);
|
print "%d\n", prime;
|
||||||
ch1 := new(chan int);
|
ch1 := new(chan int);
|
||||||
go Filter(ch, ch1, prime);
|
go Filter(ch, ch1, prime);
|
||||||
ch = ch1
|
ch = ch1
|
||||||
|
|
Loading…
Reference in a new issue