diff options
author | Ian Lance Taylor <iant@golang.org> | 2015-08-03 12:49:00 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2015-08-04 18:30:00 +0000 |
commit | c2ef8e752f77899bb6dd8579e3de45730826d70d (patch) | |
tree | 16601fcd9c453340db9346ad6f704a4c1c114c87 | |
parent | a1d093d95dfb888e55f960943bd3ad3d181ec743 (diff) | |
download | go-c2ef8e752f77899bb6dd8579e3de45730826d70d.tar.gz go-c2ef8e752f77899bb6dd8579e3de45730826d70d.zip |
cmd/go: fix documentation for exported functions
I accidentally submitted https://golang.org/cl/13080 too early.
Update #11955.
Change-Id: I1a5a6860bb46bc4bc6fd278f8a867d2dd9e411e1
Reviewed-on: https://go-review.googlesource.com/13096
Reviewed-by: Andrew Gerrand <adg@golang.org>
-rw-r--r-- | src/cmd/go/alldocs.go | 8 | ||||
-rw-r--r-- | src/cmd/go/help.go | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 0f610ddd9a..512ed61cd3 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -781,14 +781,14 @@ are: -buildmode=c-archive Build the listed main package, plus all packages it imports, into a C archive file. The only callable symbols will be those - functions marked as exported by the cgo tool. Requires exactly - one main package to be listed. + functions exported using a cgo //export comment. Requires + exactly one main package to be listed. -buildmode=c-shared Build the listed main packages, plus all packages that they import, into C shared libraries. The only callable symbols will - be those functions marked as exported by the cgo tool. Non-main - packages are ignored. + be those functions exported using a cgo //export comment. + Non-main packages are ignored. -buildmode=default Listed main packages are built into executables and listed diff --git a/src/cmd/go/help.go b/src/cmd/go/help.go index 6142874e0b..0bc5ef95fb 100644 --- a/src/cmd/go/help.go +++ b/src/cmd/go/help.go @@ -548,14 +548,14 @@ are: -buildmode=c-archive Build the listed main package, plus all packages it imports, into a C archive file. The only callable symbols will be those - functions marked as exported by the cgo tool. Requires exactly - one main package to be listed. + functions exported using a cgo //export comment. Requires + exactly one main package to be listed. -buildmode=c-shared Build the listed main packages, plus all packages that they import, into C shared libraries. The only callable symbols will - be those functions marked as exported by the cgo tool. Non-main - packages are ignored. + be those functions exported using a cgo //export comment. + Non-main packages are ignored. -buildmode=default Listed main packages are built into executables and listed |