Change information
Commit message:
cmd/go: respect -short flag when documenting individual symbols
The -short flag was ignored when documenting individual symbols (functions,
types, or variables) with "go doc -short package.symbol". This change adds
short flag checks to symbolDoc, typeDoc, and valueDoc functions.
Fixes #77192
Change-Id: I66935ceb5ffb5836dbd3a2fd2c7a33dd31e82001
Files:
- M src/cmd/go/internal/doc/pkg.go
- M src/cmd/go/testdata/script/mod_doc.txt
Change size: S
Delta: 2 files changed, 29 insertions(+), 2 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +1 by Michael Matloob, +1 by David Chase, +2 by Michael Matloob
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI