Skip to content

Commit c2ef8e7

Browse files
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 <[email protected]>
1 parent a1d093d commit c2ef8e7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/cmd/go/alldocs.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,14 +781,14 @@ are:
781781
-buildmode=c-archive
782782
Build the listed main package, plus all packages it imports,
783783
into a C archive file. The only callable symbols will be those
784-
functions marked as exported by the cgo tool. Requires exactly
785-
one main package to be listed.
784+
functions exported using a cgo //export comment. Requires
785+
exactly one main package to be listed.
786786
787787
-buildmode=c-shared
788788
Build the listed main packages, plus all packages that they
789789
import, into C shared libraries. The only callable symbols will
790-
be those functions marked as exported by the cgo tool. Non-main
791-
packages are ignored.
790+
be those functions exported using a cgo //export comment.
791+
Non-main packages are ignored.
792792
793793
-buildmode=default
794794
Listed main packages are built into executables and listed

src/cmd/go/help.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,14 +548,14 @@ are:
548548
-buildmode=c-archive
549549
Build the listed main package, plus all packages it imports,
550550
into a C archive file. The only callable symbols will be those
551-
functions marked as exported by the cgo tool. Requires exactly
552-
one main package to be listed.
551+
functions exported using a cgo //export comment. Requires
552+
exactly one main package to be listed.
553553
554554
-buildmode=c-shared
555555
Build the listed main packages, plus all packages that they
556556
import, into C shared libraries. The only callable symbols will
557-
be those functions marked as exported by the cgo tool. Non-main
558-
packages are ignored.
557+
be those functions exported using a cgo //export comment.
558+
Non-main packages are ignored.
559559
560560
-buildmode=default
561561
Listed main packages are built into executables and listed

0 commit comments

Comments
 (0)