aboutsummaryrefslogtreecommitdiff
path: root/test/args.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-16 14:58:14 -0800
committerRuss Cox <rsc@golang.org>2009-01-16 14:58:14 -0800
commit360962420c484427bbc16e1f8699ee5cccc4f012 (patch)
tree321251a8cd180ad7856af54e8e531850d0735fb0 /test/args.go
parentec9f2b0cd46300b9da3a82aa3604c98fce017baa (diff)
downloadgo-360962420c484427bbc16e1f8699ee5cccc4f012.tar.gz
go-360962420c484427bbc16e1f8699ee5cccc4f012.zip
casify, cleanup sys
R=r OCL=22978 CL=22984
Diffstat (limited to 'test/args.go')
-rw-r--r--test/args.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/args.go b/test/args.go
index 0e9b9a315a..4b9671a53f 100644
--- a/test/args.go
+++ b/test/args.go
@@ -7,13 +7,13 @@
package main
func main() {
- if sys.argc() != 3 {
+ if len(sys.Args) != 3 {
panic("argc")
}
- if sys.argv(1) != "arg1" {
+ if sys.Args[1] != "arg1" {
panic("arg1")
}
- if sys.argv(2) != "arg2" {
+ if sys.Args[2] != "arg2" {
panic("arg2")
}
}