From: Maxim Pimenov Date: Tue, 6 Dec 2011 16:16:39 +0000 (-0800) Subject: cgo: fix typo in the documentation X-Git-Tag: weekly.2011-12-06~11 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=972b98c135e271065b5938464d3b1bfe216d1c84;p=gostls13.git cgo: fix typo in the documentation R=golang-dev, gri CC=golang-dev https://golang.org/cl/5448115 --- diff --git a/src/cmd/cgo/doc.go b/src/cmd/cgo/doc.go index 1241152c30..6282c0bbfa 100644 --- a/src/cmd/cgo/doc.go +++ b/src/cmd/cgo/doc.go @@ -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: