From 9e8503b64cf49e3cc0eb531d227e3681597720d2 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Fri, 26 May 2017 23:54:48 +0000 Subject: [PATCH] fix comment --- paddle/go/cclient/cclient.go | 2 +- paddle/go/crecordio/crecordio.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/go/cclient/cclient.go b/paddle/go/cclient/cclient.go index 654b6f68a..ee2d9d24f 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 3335d0795..cfc15d29a 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] } -- GitLab