mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
7293dab5a9
commit
bc2f5f1dce
63 changed files with 310 additions and 314 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue