diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
commit | 4cecda6c347bd6902b960c6a35a967add7070b0d (patch) | |
tree | a462e224ff41ec9f3eb1a0b6e815806f9e8804ad /test/chan/goroutines.go | |
parent | 6c7ca6e4d4e26e4c8cbe0d183966011b3b088a0a (diff) | |
download | golang-4cecda6c347bd6902b960c6a35a967add7070b0d.tar.gz |
Imported Upstream version 2012.01.27upstream-weekly/2012.01.27
Diffstat (limited to 'test/chan/goroutines.go')
-rw-r--r-- | test/chan/goroutines.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/chan/goroutines.go b/test/chan/goroutines.go index d8f8803df..371a17387 100644 --- a/test/chan/goroutines.go +++ b/test/chan/goroutines.go @@ -21,7 +21,7 @@ func f(left, right chan int) { func main() { var n = 10000 if len(os.Args) > 1 { - var err os.Error + var err error n, err = strconv.Atoi(os.Args[1]) if err != nil { print("bad arg\n") |