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

- fixed a test

- added extra basic type aliases
- added select statement

SVN=117448
This commit is contained in:
Robert Griesemer 2008-05-01 18:48:52 -07:00
parent d4d19fad2f
commit 76abea7c6d

View File

@ -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