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/simpconv.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/simpconv.go')
-rw-r--r-- | test/ken/simpconv.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ken/simpconv.go b/test/ken/simpconv.go index 401ae763d..7bb3896b2 100644 --- a/test/ken/simpconv.go +++ b/test/ken/simpconv.go @@ -15,11 +15,11 @@ main() for i:=short(0); i<10; i=i+1 { s1 = s1 + vlong(i); } - if s1 != 45 { panic s1; } + if s1 != 45 { panic(s1); } s2 := float(0); for i:=0; i<10; i=i+1 { s2 = s2 + float(i); } - if s2 != 45 { panic s2; } + if s2 != 45 { panic(s2); } } |