提交 9e8503b6 编写于 作者: H Helin Wang

fix comment

上级 a868d010
......@@ -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
//
// 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]
}
......
......@@ -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
//
// 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]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册