Skip to content

Commit 2ec648a

Browse files
seankhliaogopherbot
authored andcommitted
cmd/go: update help for empty environment variables
Fixes #50335 Change-Id: I44b9dc6afa8c70b5cc8c79fb3ebddc3f45d3cef8 Reviewed-on: https://go-review.googlesource.com/c/go/+/475695 Auto-Submit: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
1 parent 10532fd commit 2ec648a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/cmd/go/alldocs.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/help/helpdoc.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,9 @@ var HelpEnvironment = &base.Command{
471471
Long: `
472472
473473
The go command and the tools it invokes consult environment variables
474-
for configuration. If an environment variable is unset, the go command
475-
uses a sensible default setting. To see the effective setting of the
476-
variable <NAME>, run 'go env <NAME>'. To change the default setting,
474+
for configuration. If an environment variable is unset or empty, the go
475+
command uses a sensible default setting. To see the effective setting of
476+
the variable <NAME>, run 'go env <NAME>'. To change the default setting,
477477
run 'go env -w <NAME>=<VALUE>'. Defaults changed using 'go env -w'
478478
are recorded in a Go environment configuration file stored in the
479479
per-user configuration directory, as reported by os.UserConfigDir.

0 commit comments

Comments
 (0)