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 c1b714356..cee8a18ac 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 len(sys.Args) > 1 {
+ if len(os.Args) > 1 {
var err os.Error;
- n, err = strconv.Atoi(sys.Args[1]);
+ n, err = strconv.Atoi(os.Args[1]);
if err != nil {
print("bad arg\n");
- sys.Exit(1);
+ os.Exit(1);
}
}
leftmost := make(chan int);