fix comment

gangliao-patch-1
Helin Wang 8 years ago
parent a868d01065
commit 9e8503b64c

@ -82,7 +82,7 @@ func cArrayToSlice(p unsafe.Pointer, len int) []byte {
// https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices // https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices
// //
// Go garbage collector will not interact with this data, need // Go garbage collector will not interact with this data, need
// to be freed from C side. // to be freed properly.
return (*[1 << 30]byte)(p)[:len:len] return (*[1 << 30]byte)(p)[:len:len]
} }

@ -126,7 +126,7 @@ func cArrayToSlice(p unsafe.Pointer, len int) []byte {
// https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices // https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices
// //
// Go garbage collector will not interact with this data, need // Go garbage collector will not interact with this data, need
// to be freed from C side. // to be freed properly.
return (*[1 << 30]byte)(p)[:len:len] return (*[1 << 30]byte)(p)[:len:len]
} }

Loading…
Cancel
Save