cmd/vet/jsontags: fix a typo in an error message

Updates #17945

Change-Id: I8987271420feb190f5e4d85caff305c8d4e84aae
Signed-off-by: Alex Chan <alexc@tailscale.com>
main
Alex Chan 5 months ago committed by Alex Chan
parent 85373ef822
commit af7c26aa05
  1. 4
      cmd/vet/jsontags/report.go

@ -80,9 +80,9 @@ const (
func (k ReportKind) message() string {
switch k {
case OmitEmptyUnsupportedInV1:
return "uses `omitempty` on an unspported type in json/v1; should probably use `omitzero` instead"
return "uses `omitempty` on an unsupported type in json/v1; should probably use `omitzero` instead"
case OmitEmptyUnsupportedInV2:
return "uses `omitempty` on an unspported type in json/v2; should probably use `omitzero` instead"
return "uses `omitempty` on an unsupported type in json/v2; should probably use `omitzero` instead"
case OmitEmptyShouldBeOmitZero:
return "should use `omitzero` instead of `omitempty`"
case OmitEmptyShouldBeOmitZeroButHasIsZero:

Loading…
Cancel
Save