Commit 972b98c1 authored by Maxim Pimenov's avatar Maxim Pimenov Committed by Robert Griesemer

cgo: fix typo in the documentation

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5448115
parent e0c006a9
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment