diff options
author | Russ Cox <rsc@golang.org> | 2008-11-17 12:34:03 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-11-17 12:34:03 -0800 |
commit | fd8d7456cd1b52382e70e53bd13188f1a3ef637d (patch) | |
tree | aeb58cc993873dadfe1a2adbc63521879b2dd66a /test/chan | |
parent | 91eab1d545179e53b82476fc972039385ba2ae64 (diff) | |
download | go-fd8d7456cd1b52382e70e53bd13188f1a3ef637d.tar.gz |
correctly rounded floating-point conversions
in new package strconv.
move atoi etc to strconv too.
update fmt, etc to use strconv.
R=r
DELTA=2232 (1691 added, 424 deleted, 117 changed)
OCL=19286
CL=19380
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); |