Commit 344b1651 authored by Rob Pike's avatar Rob Pike

update utf8_test.go

R=rsc
OCL=22170
CL=22170
parent dabdfa6c
......@@ -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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment