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/test0.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test0.go') diff --git a/test/test0.go b/test/test0.go index a3691fb469..0a11e1d288 100644 --- a/test/test0.go +++ b/test/test0.go @@ -8,7 +8,7 @@ package main const a_const = 0 - + const ( pi = /* the usual */ 3.14159265358979323; e = 2.718281828; @@ -55,7 +55,7 @@ func swap(x, y int) (u, v int) { } func control_structs() { - var p *Point = new(Point).Initialize(2, 3); + var p *Point = new(*Point).Initialize(2, 3); i := p.Distance(); var f float = 0.3; for {} -- cgit v1.3