[-src] to [doc flags]

This commit is contained in:
Vitaly Zdanevich 2021-05-29 16:47:27 +03:00
parent 33ccad969f
commit 20aaec3aa0
2 changed files with 2 additions and 2 deletions

View file

@ -293,7 +293,7 @@
//
// Usage:
//
// go doc [-u] [-src] [-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
// arguments (a package, const, func, type, var, method, or struct field)

View file

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