1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:57:57 -07:00

cgo: fix typo in the documentation

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5448115
This commit is contained in:
Maxim Pimenov 2011-12-06 08:16:39 -08:00 committed by Robert Griesemer
parent e0c006a9b0
commit 972b98c135

View File

@ -93,7 +93,7 @@ Go functions can be exported for use by C code in the following way:
func MyFunction(arg1, arg2 int, arg3 string) int64 {...}
//export MyFunction2
func MyFunction2(arg1, arg2 int, arg3 string) (int64, C.char*) {...}
func MyFunction2(arg1, arg2 int, arg3 string) (int64, *C.char) {...}
They will be available in the C code as: