]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix documentation for exported functions
authorIan Lance Taylor <iant@golang.org>
Mon, 3 Aug 2015 19:49:00 +0000 (12:49 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 4 Aug 2015 18:30:00 +0000 (18:30 +0000)
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>
src/cmd/go/alldocs.go
src/cmd/go/help.go

index 0f610ddd9a95e8d3b8ed35a6e92e6dcd03daca1f..512ed61cd3d28abc9e877977230c3b28831fa855 100644 (file)
@@ -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
index 6142874e0bd23be20359ee1d21fb2b3788fdd434..0bc5ef95fbd8b5f9a56fd8aa5eef739d8e27f8cc 100644 (file)
@@ -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