]> Cypherpunks repositories - gostls13.git/commitdiff
update utf8_test.go
authorRob Pike <r@golang.org>
Tue, 6 Jan 2009 23:30:07 +0000 (15:30 -0800)
committerRob Pike <r@golang.org>
Tue, 6 Jan 2009 23:30:07 +0000 (15:30 -0800)
R=rsc
OCL=22170
CL=22170

src/lib/utf8_test.go

index a0fe345bdf43fdee652aaa55e22d534441c3f413..aebd335658377b9e04493fe445671c25d7d74189 100644 (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");
        }