summaryrefslogtreecommitdiff
path: root/test/chan/goroutines.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/chan/goroutines.go')
-rw-r--r--test/chan/goroutines.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/chan/goroutines.go b/test/chan/goroutines.go
index 104b247f3..8c7f9ad69 100644
--- a/test/chan/goroutines.go
+++ b/test/chan/goroutines.go
@@ -20,12 +20,12 @@ func f(left, right chan int) {
func main() {
var n = 10000;
- if sys.argc() > 1 {
+ if len(sys.Args) > 1 {
var err *os.Error;
- n, err = strconv.Atoi(sys.argv(1));
+ n, err = strconv.Atoi(sys.Args[1]);
if err != nil {
print("bad arg\n");
- sys.exit(1);
+ sys.Exit(1);
}
}
leftmost := make(chan int);