diff options
author | Rob Pike <r@golang.org> | 2008-08-11 22:07:49 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-08-11 22:07:49 -0700 |
commit | 9836f34dec5002c36672fdfcbcccc93df4652704 (patch) | |
tree | 9d0faf1d96579f8c9fb0321586cab7c5149ccdf1 /test/ken/simpfun.go | |
parent | 4f0f8b947606f59073fb8e46f8bd701907c0b2f9 (diff) | |
download | golang-9836f34dec5002c36672fdfcbcccc93df4652704.tar.gz |
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
Diffstat (limited to 'test/ken/simpfun.go')
-rw-r--r-- | test/ken/simpfun.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ken/simpfun.go b/test/ken/simpfun.go index 3605fa286..1e063bf0f 100644 --- a/test/ken/simpfun.go +++ b/test/ken/simpfun.go @@ -15,7 +15,7 @@ main() var x int; x = fun(10,20,30); - if x != 60 { panic x; } + if x != 60 { panic(x); } } func @@ -24,6 +24,6 @@ fun(ia,ib,ic int)int var o int; o = ia+ib+ic; - if o != 60 { panic o; } + if o != 60 { panic(o); } return o; } |