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 | bc2f5f1dce1687d0aff0d51ea1b56a5d52aa3891 (patch) | |
tree | 9d0faf1d96579f8c9fb0321586cab7c5149ccdf1 /test/args.go | |
parent | 7293dab5a9e4d0fb4b66fd76bab2572bbebc050d (diff) | |
download | go-bc2f5f1dce1687d0aff0d51ea1b56a5d52aa3891.tar.gz go-bc2f5f1dce1687d0aff0d51ea1b56a5d52aa3891.zip |
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/args.go')
-rw-r--r-- | test/args.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/args.go b/test/args.go index 684cc46009..0e9b9a315a 100644 --- a/test/args.go +++ b/test/args.go @@ -8,12 +8,12 @@ package main func main() { if sys.argc() != 3 { - panic "argc" + panic("argc") } if sys.argv(1) != "arg1" { - panic "arg1" + panic("arg1") } if sys.argv(2) != "arg2" { - panic "arg2" + panic("arg2") } } |