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 | d4f4656470e56d7d4dc35ecef1841f989745b24f (patch) | |
tree | 9d0faf1d96579f8c9fb0321586cab7c5149ccdf1 /test/peano.go | |
parent | df89d5ea8f7e8d7601dc176b6544206a68b1fe09 (diff) | |
download | go-d4f4656470e56d7d4dc35ecef1841f989745b24f.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/peano.go')
-rw-r--r-- | test/peano.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/peano.go b/test/peano.go index bc52c0612..4c1b837b2 100644 --- a/test/peano.go +++ b/test/peano.go @@ -87,7 +87,7 @@ func count(x *Number) int { func check(x *Number, expected int) { var c = count(x); if c != expected { - panic "error: found ", c, "; expected ", expected, "\n"; + panic("error: found ", c, "; expected ", expected, "\n"); } } @@ -125,7 +125,7 @@ func main() { verify(); for i := 0; i <= 10; i++ { - print i, "! = ", count(fact(gen(i))), "\n"; + print(i, "! = ", count(fact(gen(i))), "\n"); } } |