update utf8_test.go

R=rsc
OCL=22170
CL=22170
This commit is contained in:
Rob Pike 2009-01-06 15:30:07 -08:00
parent dabdfa6cce
commit 344b16512c

View File

@ -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");
}