diff --git a/paddle/go/cclient/cclient.go b/paddle/go/cclient/cclient.go index 654b6f68a4f3537ea3b76804476588cd92dc7f9f..ee2d9d24fd82fffd8b77210c6c167c3364cc6da2 100644 --- a/paddle/go/cclient/cclient.go +++ b/paddle/go/cclient/cclient.go @@ -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] } diff --git a/paddle/go/crecordio/crecordio.go b/paddle/go/crecordio/crecordio.go index 3335d0795f08d7f51cc9271cdbb7e00b0b2ac2c9..cfc15d29a663eb135756ec9404053d8c79d23d74 100644 --- a/paddle/go/crecordio/crecordio.go +++ b/paddle/go/crecordio/crecordio.go @@ -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] }