1
0
mirror of https://github.com/golang/go synced 2024-11-26 11:28:21 -07:00

cmd/go: add [-src] to documentation

Change-Id: I554b5021386575af6ff44571a95bb31b38a0547f
GitHub-Last-Rev: 20aaec3aa0
GitHub-Pull-Request: golang/go#45956
Reviewed-on: https://go-review.googlesource.com/c/go/+/317109
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
This commit is contained in:
Vitaly Zdanevich 2021-05-29 13:49:51 +00:00 committed by Jay Conrod
parent 0b80cf1136
commit 2e59cc5fb4
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@
// //
// Usage: // Usage:
// //
// go doc [-u] [-c] [package|[package.]symbol[.methodOrField]] // go doc [doc flags] [package|[package.]symbol[.methodOrField]]
// //
// Doc prints the documentation comments associated with the item identified by its // Doc prints the documentation comments associated with the item identified by its
// arguments (a package, const, func, type, var, method, or struct field) // arguments (a package, const, func, type, var, method, or struct field)

View File

@ -13,7 +13,7 @@ import (
var CmdDoc = &base.Command{ var CmdDoc = &base.Command{
Run: runDoc, Run: runDoc,
UsageLine: "go doc [-u] [-c] [package|[package.]symbol[.methodOrField]]", UsageLine: "go doc [doc flags] [package|[package.]symbol[.methodOrField]]",
CustomFlags: true, CustomFlags: true,
Short: "show documentation for package or symbol", Short: "show documentation for package or symbol",
Long: ` Long: `