mirror of
https://github.com/golang/go.git
synced 2025-11-01 09:10:57 +00:00
update utf8_test.go
R=rsc OCL=22170 CL=22170
This commit is contained in:
parent
dabdfa6cce
commit
344b16512c
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue