diff options
Diffstat (limited to 'test/chan')
-rw-r--r-- | test/chan/goroutines.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/chan/goroutines.go b/test/chan/goroutines.go index b86ed8848..b480e5085 100644 --- a/test/chan/goroutines.go +++ b/test/chan/goroutines.go @@ -10,7 +10,7 @@ package main import ( - "strings"; + "strconv"; ) func f(left, right *chan int) { @@ -21,7 +21,7 @@ func main() { var n = 10000; if sys.argc() > 1 { var ok bool; - n, ok = strings.atoi(sys.argv(1)); + n, ok = strconv.atoi(sys.argv(1)); if !ok { print("bad arg\n"); sys.exit(1); |