]> Cypherpunks.ru repositories - gostls13.git/commitdiff
fix a couple of minor errors
authorRob Pike <r@golang.org>
Sat, 12 Jul 2008 20:56:33 +0000 (13:56 -0700)
committerRob Pike <r@golang.org>
Sat, 12 Jul 2008 20:56:33 +0000 (13:56 -0700)
SVN=126938

test/sieve.go

index dd23903e16ccd6ffc999d5a706fe94de5fb9a675..365252260cd0f820dedf1d405c1059190e43f91a 100644 (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()
 }