From 08ca30bbfad04d3ca1bf7ae75c291b91ecb00aef Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 19 Dec 2008 03:05:37 -0800 Subject: change *map to map; *chan to chan; new(T) to new(*T) fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581 --- test/ken/array.go | 2 +- test/ken/chan.go | 6 +++--- test/ken/embed.go | 8 ++++---- test/ken/interfun.go | 2 +- test/ken/intervar.go | 6 +++--- test/ken/ptrfun.go | 2 +- test/ken/range.go | 2 +- test/ken/rob1.go | 6 +++--- test/ken/rob2.go | 6 +++--- test/ken/robfunc.go | 2 +- test/ken/simparray.go | 2 +- test/ken/simpbool.go | 2 +- test/ken/string.go | 2 +- 13 files changed, 24 insertions(+), 24 deletions(-) (limited to 'test/ken') diff --git a/test/ken/array.go b/test/ken/array.go index 167830e575..2027a31fff 100644 --- a/test/ken/array.go +++ b/test/ken/array.go @@ -95,7 +95,7 @@ testpfpf() func testpdpf1() { - a := new([40]int); + a := new(*[40]int); setpd(a); res(sumpd(a), 0, 40); diff --git a/test/ken/chan.go b/test/ken/chan.go index 64758537eb..da08477e65 100644 --- a/test/ken/chan.go +++ b/test/ken/chan.go @@ -22,7 +22,7 @@ nrand(n int) int type Chan struct { - sc,rc *chan int; // send and recv chan + sc,rc chan int; // send and recv chan sv,rv int; // send and recv seq } @@ -38,7 +38,7 @@ var func init() { - nc = new(Chan); + nc = new(*Chan); } func @@ -47,7 +47,7 @@ mkchan(c,n int) []*Chan ca := new([]*Chan, n); for i:=0; i