From 654c3368e53c923acff5fd5a1eaf4175bb6834d6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 21 Apr 2024 14:21:18 -0700 Subject: 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 Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Reviewed-by: Keith Randall --- src/cmd/go/internal/envcmd/env.go | 5 +---- 1 file changed, 1 insertion(+), 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]) -- cgit v1.2.3-54-g00ecf