syscall: remove a wrong comment in Clearenv

The comment being removed was added by commit ff3173849e
(which predates Gerrit and Rietveld, so no CL link), and
at the time it made sense.

Since CL 148370043 (and up to the current implementation of Clearenv)
the env map, which is populated by copyenv, is actually used, so the
comment is no longer valid.

It is also misleading, so it's best to remove it.

Change-Id: I8bd2e8bca6262759538e5bcbd396f0c71cca6a4c
Reviewed-on: https://go-review.googlesource.com/c/go/+/635078
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Kir Kolyshkin 2024-12-10 12:10:13 -08:00 committed by Gopher Robot
parent a9922d096f
commit e0c76d95ab

View file

@ -124,7 +124,7 @@ func Setenv(key, value string) error {
} }
func Clearenv() { func Clearenv() {
envOnce.Do(copyenv) // prevent copyenv in Getenv/Setenv envOnce.Do(copyenv)
envLock.Lock() envLock.Lock()
defer envLock.Unlock() defer envLock.Unlock()