summaryrefslogtreecommitdiff
path: root/test/235.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-06 15:19:02 -0800
committerRuss Cox <rsc@golang.org>2009-01-06 15:19:02 -0800
commit19fede0efc349d1dce1b28f1be42e21b7276a44d (patch)
treef3f98baba1fdd5e0138a4875884aa85111308b3f /test/235.go
parent3454572242c20d34d557038e2523de084f1e26e5 (diff)
downloadgo-19fede0efc349d1dce1b28f1be42e21b7276a44d.tar.gz
new new & make
R=r OCL=22166 CL=22166
Diffstat (limited to 'test/235.go')
-rw-r--r--test/235.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/235.go b/test/235.go
index 4ff7c30c8..9db10175d 100644
--- a/test/235.go
+++ b/test/235.go
@@ -9,8 +9,8 @@ package main
type T chan uint64;
func M(f uint64) (in, out T) {
- in = new(T, 100);
- out = new(T, 100);
+ in = make(T, 100);
+ out = make(T, 100);
go func(in, out T, f uint64) {
for {
out <- f * <-in;
@@ -44,9 +44,9 @@ func main() {
1250, 1280, 1296, 1350, 1440, 1458, 1500, 1536, 1600 };
x := uint64(1);
- ins := new([]T, n);
- outs := new([]T, n);
- xs := new([]uint64, n);
+ ins := make([]T, n);
+ outs := make([]T, n);
+ xs := make([]uint64, n);
for i := 0; i < n; i++ {
ins[i], outs[i] = M(F[i]);
xs[i] = x;