From: Rob Pike Date: Tue, 6 Jan 2009 23:30:07 +0000 (-0800) Subject: update utf8_test.go X-Git-Tag: weekly.2009-11-06~2433 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=344b16512cd8e6883302617f4727381587d87305;p=gostls13.git update utf8_test.go R=rsc OCL=22170 CL=22170 --- diff --git a/src/lib/utf8_test.go b/src/lib/utf8_test.go index a0fe345bdf..aebd335658 100644 --- a/src/lib/utf8_test.go +++ b/src/lib/utf8_test.go @@ -45,7 +45,7 @@ var utf8map = []Utf8Map { } func Bytes(s string) []byte { - b := new([]byte, len(s)+1); + b := make([]byte, len(s)+1); if !syscall.StringToBytes(b, s) { panic("StringToBytes failed"); }