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

Updates #17945

Change-Id: I8987271420feb190f5e4d85caff305c8d4e84aae
Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
Alex Chan
2025-11-18 10:36:14 +00:00
committed by Alex Chan
parent 85373ef822
commit af7c26aa05

View File

@@ -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: