]> Cypherpunks repositories - gostls13.git/commitdiff
Don't bother to import "os" just so that we can call
authorIan Lance Taylor <iant@golang.org>
Sun, 17 May 2009 06:12:28 +0000 (23:12 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 17 May 2009 06:12:28 +0000 (23:12 -0700)
os.Exit(0) at the end of main.

R=rsc
DELTA=6  (0 added, 6 deleted, 0 changed)
OCL=28967
CL=28969

test/235.go
test/chan/sieve.go

index b8621cc7e53fa5ff839a83daefe84b60328e6928..fe3024c613964aec035b5b718d5d9630b88b5440 100644 (file)
@@ -6,8 +6,6 @@
 
 package main
 
-import "os"
-
 type T chan uint64;
 
 func M(f uint64) (in, out T) {
@@ -67,5 +65,4 @@ func main() {
                x = min(xs);
                if x != OUT[i] { panic("bad: ", x, " should be ", OUT[i]); }
        }
-       os.Exit(0);
 }
index 49f1c105e2fc931191af3b4e467dfd2312c4fdd6..b47615f2f5a2d905eea1dbb680cedc18c64a72eb 100644 (file)
@@ -9,8 +9,6 @@
 
 package main
 
-import "os"
-
 // Send the sequence 2, 3, 4, ... to channel 'ch'.
 func Generate(ch chan<- int) {
        for i := 2; ; i++ {
@@ -49,5 +47,4 @@ func main() {
        for i := 0; i < len(a); i++ {
                if x := <-primes; x != a[i] { panic(x, " != ", a[i]) }
        }
-       os.Exit(0);
 }