test: remove semiocolons.

The ken directory is untouched so we have some examples with explicit semis.

R=gri
CC=golang-dev
https://golang.org/cl/2157041
This commit is contained in:
Rob Pike 2010-09-04 10:36:13 +10:00
parent cd8f4cd206
commit 4f61fc96b2
88 changed files with 2512 additions and 2516 deletions

View file

@ -10,32 +10,32 @@
package main
import (
"os";
"strconv";
"os"
"strconv"
)
func f(left, right chan int) {
left <- <-right;
left <- <-right
}
func main() {
var n = 10000;
var n = 10000
if len(os.Args) > 1 {
var err os.Error;
n, err = strconv.Atoi(os.Args[1]);
var err os.Error
n, err = strconv.Atoi(os.Args[1])
if err != nil {
print("bad arg\n");
os.Exit(1);
print("bad arg\n")
os.Exit(1)
}
}
leftmost := make(chan int);
right := leftmost;
left := leftmost;
leftmost := make(chan int)
right := leftmost
left := leftmost
for i := 0; i < n; i++ {
right = make(chan int);
go f(left, right);
left = right;
right = make(chan int)
go f(left, right)
left = right
}
go func(c chan int) { c <- 1 }(right);
<-leftmost;
go func(c chan int) { c <- 1 }(right)
<-leftmost
}