summaryrefslogtreecommitdiff
path: root/test/utf.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/utf.go
parent3454572242c20d34d557038e2523de084f1e26e5 (diff)
downloadgo-19fede0efc349d1dce1b28f1be42e21b7276a44d.tar.gz
new new & make
R=r OCL=22166 CL=22166
Diffstat (limited to 'test/utf.go')
-rw-r--r--test/utf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utf.go b/test/utf.go
index 7880b5ab9..5905152b6 100644
--- a/test/utf.go
+++ b/test/utf.go
@@ -29,7 +29,7 @@ func main() {
// encoded as bytes: 'a' 'b' 'c' e6 97 a5 e6 9c ac e8 aa 9e
const L = 12;
if L != l { panic("wrong length constructing array") }
- a := new(*[L]byte);
+ a := new([L]byte);
a[0] = 'a';
a[1] = 'b';
a[2] = 'c';