From a214158628c825c2f6de0cfcc74815ac945ef2fa Mon Sep 17 00:00:00 2001 From: softdev050 Date: Fri, 6 Jan 2023 08:56:51 -0800 Subject: [PATCH] cmd/govulncheck: improve platform-specific printing comments Change-Id: I7e209403f8b1a4b8205555713f89dd4152e17d54 Reviewed-on: https://go-review.googlesource.com/c/vuln/+/460424 Run-TryBot: Zvonimir Pavlinovic TryBot-Result: Gopher Robot Reviewed-by: Jonathan Amsterdam Auto-Submit: Zvonimir Pavlinovic --- cmd/govulncheck/print.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/govulncheck/print.go b/cmd/govulncheck/print.go index e089846..11a3f1c 100644 --- a/cmd/govulncheck/print.go +++ b/cmd/govulncheck/print.go @@ -155,8 +155,9 @@ func verboseCallStacks(css []govulncheck.CallStack) string { return b.String() } -// platforms returns a string describing the GOOS/GOARCH pairs that the vuln affects. -// If it affects all of them, it returns the empty string. +// platforms returns a string describing the GOOS, GOARCH, +// or GOOS/GOARCH pairs that the vuln affects. If it affects +// all of them, it returns the empty string. func platforms(e *osv.Entry) string { platforms := map[string]bool{} for _, a := range e.Affected {