Skip to content

Commit c72ba41

Browse files
committed
comment
1 parent 54f405b commit c72ba41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

error_default.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func (*noCopy) Unlock() {}
4040
// From https://go.dev/wiki/CodeReviewComments#receiver-type:
4141
// > If the receiver is a struct, array or slice and any of its elements is a pointer to something that might be mutating,
4242
// > prefer a pointer receiver, as it will make the intention clearer to the reader.
43+
// > Don’t mix receiver types. Choose either pointers or struct types for all available methods.
4344
// swagger:ignore
4445
type DefaultError struct {
4546
_ noCopy

0 commit comments

Comments
 (0)