diff options
| author | Shenghou Ma <minux@golang.org> | 2015-10-16 17:48:17 -0400 |
|---|---|---|
| committer | Minux Ma <minux@golang.org> | 2015-10-23 22:23:05 +0000 |
| commit | 75a423a983366f92eebe12cf6875e1ffc07537ec (patch) | |
| tree | 35a4f493a210027ceb0fe0c5a8debb433e446791 /src | |
| parent | 9b6069bf983678b2f490be029d493e711bf80bd9 (diff) | |
| download | go-75a423a983366f92eebe12cf6875e1ffc07537ec.tar.xz | |
cmd/cgo: clarify C.GoStringN and C.GoBytes docs
Fixes #12427.
Change-Id: I46725620c1e163f3b60ffcd85e5388fa646f074d
Reviewed-on: https://go-review.googlesource.com/15997
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/cgo/doc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/cgo/doc.go b/src/cmd/cgo/doc.go index 723bbfe6ad..a4675bd448 100644 --- a/src/cmd/cgo/doc.go +++ b/src/cmd/cgo/doc.go @@ -189,10 +189,10 @@ by making copies of the data. In pseudo-Go definitions: // C string to Go string func C.GoString(*C.char) string - // C string, length to Go string + // C data with explicit length to Go string func C.GoStringN(*C.char, C.int) string - // C pointer, length to Go []byte + // C data with explicit length to Go []byte func C.GoBytes(unsafe.Pointer, C.int) []byte C references to Go |
