aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/alldocs.go
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2023-03-12 10:34:04 +0800
committerGopher Robot <gobot@golang.org>2023-05-20 21:12:34 +0000
commit2ec648aa8c42d1215ddf59c6a461b21fb6723b74 (patch)
treee127b3921857d91966a1b0f047eab1e6a8433e45 /src/cmd/go/alldocs.go
parent10532fdb141ae80140cd0f14637b9fe82f379688 (diff)
downloadgo-2ec648aa8c42d1215ddf59c6a461b21fb6723b74.tar.gz
go-2ec648aa8c42d1215ddf59c6a461b21fb6723b74.zip
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 <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r--src/cmd/go/alldocs.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index 8bcbd3f764..455a0f7536 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -2098,9 +2098,9 @@
// # Environment variables
//
// The go command and the tools it invokes consult environment variables
-// for configuration. If an environment variable is unset, the go command
-// uses a sensible default setting. To see the effective setting of the
-// variable <NAME>, run 'go env <NAME>'. To change the default setting,
+// for configuration. If an environment variable is unset or empty, the go
+// command uses a sensible default setting. To see the effective setting of
+// the variable <NAME>, run 'go env <NAME>'. To change the default setting,
// run 'go env -w <NAME>=<VALUE>'. Defaults changed using 'go env -w'
// are recorded in a Go environment configuration file stored in the
// per-user configuration directory, as reported by os.UserConfigDir.