summaryrefslogtreecommitdiff
path: root/test/ken/rob1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-19 03:05:37 -0800
committerRuss Cox <rsc@golang.org>2008-12-19 03:05:37 -0800
commit65e4c6bf1819903c1b751a3b305a6d2ec07cc283 (patch)
tree183e8cd345f5f895d2cbc36dd8f8be93640303c3 /test/ken/rob1.go
parent89995dcecf37b9a21c26783dcf8ab506da237363 (diff)
downloadgolang-65e4c6bf1819903c1b751a3b305a6d2ec07cc283.tar.gz
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
Diffstat (limited to 'test/ken/rob1.go')
-rw-r--r--test/ken/rob1.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ken/rob1.go b/test/ken/rob1.go
index a75878b1f..35397b36f 100644
--- a/test/ken/rob1.go
+++ b/test/ken/rob1.go
@@ -31,7 +31,7 @@ Init()
func (list *List)
Insert(i Item)
{
- item := new(ListItem);
+ item := new(*ListItem);
item.item = i;
item.next = list.head;
list.head = item;
@@ -69,10 +69,10 @@ Print()
func
main()
{
- list := new(List);
+ list := new(*List);
list.Init();
for i := 0; i < 10; i = i + 1 {
- integer := new(Integer);
+ integer := new(*Integer);
integer.Init(i);
list.Insert(integer);
}