aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2024-04-21 14:21:18 -0700
committerGopher Robot <gobot@golang.org>2024-04-22 17:58:25 +0000
commit654c3368e53c923acff5fd5a1eaf4175bb6834d6 (patch)
tree8d8aa6974b7644bbf2c494f80377399ff1a4f7ba
parented2671aa150598e5bf23c1c69b200a1afbb577d3 (diff)
downloadgo-654c3368e53c923acff5fd5a1eaf4175bb6834d6.tar.gz
go-654c3368e53c923acff5fd5a1eaf4175bb6834d6.zip
cmd/go: update comment to not say GO386 does not exist
GO386 was removed by CL 258957, but it was restored by CL 260017. Change-Id: Iced49ca61512a0f2ef513acbf9700a87ac964c68 Reviewed-on: https://go-review.googlesource.com/c/go/+/580675 Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Keith Randall <khr@golang.org>
-rw-r--r--src/cmd/go/internal/envcmd/env.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go
index 1680753b0f..bff3fe5d55 100644
--- a/src/cmd/go/internal/envcmd/env.go
+++ b/src/cmd/go/internal/envcmd/env.go
@@ -681,10 +681,7 @@ func lineToKey(line string) string {
}
// sortKeyValues sorts a sequence of lines by key.
-// It differs from sort.Strings in that keys which are GOx where x is an ASCII
-// character smaller than = sort after GO=.
-// (There are no such keys currently. It used to matter for GO386 which was
-// removed in Go 1.16.)
+// It differs from sort.Strings in that GO386= sorts after GO=.
func sortKeyValues(lines []string) {
sort.Slice(lines, func(i, j int) bool {
return lineToKey(lines[i]) < lineToKey(lines[j])