diff options
author | Russ Cox <rsc@golang.org> | 2009-01-06 15:19:02 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-06 15:19:02 -0800 |
commit | 19fede0efc349d1dce1b28f1be42e21b7276a44d (patch) | |
tree | f3f98baba1fdd5e0138a4875884aa85111308b3f /test/chan/goroutines.go | |
parent | 3454572242c20d34d557038e2523de084f1e26e5 (diff) | |
download | go-19fede0efc349d1dce1b28f1be42e21b7276a44d.tar.gz |
new new & make
R=r
OCL=22166
CL=22166
Diffstat (limited to 'test/chan/goroutines.go')
-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 afc5ead30..db76a399c 100644 --- a/test/chan/goroutines.go +++ b/test/chan/goroutines.go @@ -28,11 +28,11 @@ func main() { sys.exit(1); } } - leftmost := new(chan int); + leftmost := make(chan int); right := leftmost; left := leftmost; for i := 0; i < n; i++ { - right = new(chan int); + right = make(chan int); go f(left, right); left = right; } |