]> Cypherpunks repositories - gostls13.git/commitdiff
cgo: fix typo in the documentation
authorMaxim Pimenov <mpimenov@google.com>
Tue, 6 Dec 2011 16:16:39 +0000 (08:16 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 6 Dec 2011 16:16:39 +0000 (08:16 -0800)
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5448115

src/cmd/cgo/doc.go

index 1241152c304390591b2ed48d5a9b57fa6b6bdf68..6282c0bbfac169e5e2922d0a9681ebf8aebefa7d 100644 (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: