summaryrefslogtreecommitdiff
path: root/test/ken/string.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
commite684aa575c07e0c3b15d959ff4b06d9d8787597a (patch)
treef3f98baba1fdd5e0138a4875884aa85111308b3f /test/ken/string.go
parent2e8a2665111620da74f35212abc1414c1bab4bad (diff)
downloadgolang-e684aa575c07e0c3b15d959ff4b06d9d8787597a.tar.gz
new new & make
R=r OCL=22166 CL=22166
Diffstat (limited to 'test/ken/string.go')
-rw-r--r--test/ken/string.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ken/string.go b/test/ken/string.go
index 7bd402e1f..850ddccf6 100644
--- a/test/ken/string.go
+++ b/test/ken/string.go
@@ -92,7 +92,7 @@ main()
}
/* create string with byte array pointer */
- z2 := new(*[3]byte);
+ z2 := new([3]byte);
z2[0] = 'a';
z2[1] = 'b';
z2[2] = 'c';