Skip to content

Commit 7a84066

Browse files
jroimartinBryan Mills
authored and
Bryan Mills
committed
cmd/go: update "go help doc" docs
This CL updates "go help doc" docs so they reflect the following changes: - CL 59413 modified "go doc", so the behavior of the two-args case is consistent with the one-arg one. - CL 141397 removed godoc's command-line interface in favor of "go doc". Fixes #49830. Change-Id: I0923634291d34ae663fe2944d69757462b814919 Reviewed-on: https://go-review.googlesource.com/c/go/+/367497 Reviewed-by: Bryan Mills <[email protected]> Run-TryBot: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Trust: Russ Cox <[email protected]>
1 parent 2cb9042 commit 7a84066

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/cmd/go/alldocs.go

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/doc/doc.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ The package path must be either a qualified path or a proper suffix of a
6060
path. The go tool's usual package mechanism does not apply: package path
6161
elements like . and ... are not implemented by go doc.
6262
63-
When run with two arguments, the first must be a full package path (not just a
64-
suffix), and the second is a symbol, or symbol with method or struct field.
65-
This is similar to the syntax accepted by godoc:
63+
When run with two arguments, the first is a package path (full path or suffix),
64+
and the second is a symbol, or symbol with method or struct field:
6665
6766
go doc <pkg> <sym>[.<methodOrField>]
6867

0 commit comments

Comments
 (0)