Skip to content

Commit 9222b43

Browse files
committed
go/analysis: tweak Diagnostic.SuggestedFixes doc
Fixes golang/go#72105 Change-Id: Icaca158250de175a3afcadc218aed8ca617f2ff4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/716562 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 154b4e7 commit 9222b43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

go/analysis/diagnostic.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ type Diagnostic struct {
3333
URL string
3434

3535
// SuggestedFixes is an optional list of fixes to address the
36-
// problem described by the diagnostic. Each one represents
37-
// an alternative strategy; at most one may be applied.
36+
// problem described by the diagnostic. Each one represents an
37+
// alternative strategy, and should have a distinct and
38+
// descriptive message; at most one may be applied.
3839
//
3940
// Fixes for different diagnostics should be treated as
4041
// independent changes to the same baseline file state,

0 commit comments

Comments
 (0)