mirror of https://github.com/golang/go.git
comment nit
R=r DELTA=2 (0 added, 2 deleted, 0 changed) OCL=25081 CL=25084
This commit is contained in:
parent
eb3823a44d
commit
c19468d8df
|
|
@ -45,8 +45,6 @@ type ReadWriteClose interface {
|
|||
}
|
||||
|
||||
// Convert a string to an array of bytes for easy marshaling.
|
||||
// Could fill with syscall.StringToBytes but it adds an unnecessary \000
|
||||
// so the length would be wrong.
|
||||
func StringBytes(s string) []byte {
|
||||
b := make([]byte, len(s));
|
||||
for i := 0; i < len(s); i++ {
|
||||
|
|
|
|||
Loading…
Reference in New Issue