From 3a528855af73ff1e3bd7f5ac8e9374e27f3144f8 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Thu, 9 Apr 2026 13:42:03 +0000 Subject: os/exec: doc typo Change-Id: I623eee6738a8ebb1db2bc5693a9973c58878260c GitHub-Last-Rev: d7d918d4ede9d7a374a0a51f569c6890d74c8f91 GitHub-Pull-Request: golang/go#78609 Reviewed-on: https://go-review.googlesource.com/c/go/+/764364 Reviewed-by: Keith Randall LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com Reviewed-by: David Chase Reviewed-by: Sean Liao --- src/os/exec/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 24cd6b141a..fb1a8d53ad 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -1268,7 +1268,7 @@ func dedupEnv(env []string) ([]string, error) { // dedupEnvCase is dedupEnv with a case option for testing. // If caseInsensitive is true, the case of keys is ignored. -// If nulOK is false, items containing NUL characters are allowed. +// If nulOK is false, items containing NUL characters are rejected. func dedupEnvCase(caseInsensitive, nulOK bool, env []string) ([]string, error) { // Construct the output in reverse order, to preserve the // last occurrence of each key. -- cgit v1.3