fix bug depot:

1) fix print statements, panic statements (parentheses required)
	2) len is now allowed as a var name (bug053)

R=gri
OCL=14106
CL=14106
This commit is contained in:
Rob Pike 2008-08-11 22:07:49 -07:00
parent 7293dab5a9
commit bc2f5f1dce
63 changed files with 310 additions and 314 deletions

View file

@ -17,7 +17,7 @@ func AsynchFifo() {
}
for i := 0; i < N; i++ {
if <-ch != i {
print "bad receive\n";
print("bad receive\n");
sys.exit(1);
}
}
@ -26,7 +26,7 @@ func AsynchFifo() {
func Chain(ch *chan<- int, val int, in *chan<- int, out *chan-< int) {
<-in;
if <-ch != val {
panic val
panic(val)
}
out -< 1
}