Skip to content

Commit fe32309

Browse files
committed
fix: report the argument position
1 parent a101578 commit fe32309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

musttag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func run(pass *analysis.Pass, mainModule string, funcs map[string]Func) (_ any,
138138
return // nothing to report.
139139
}
140140

141-
pass.Reportf(call.Pos(), "the given struct should be annotated with the `%s` tag", fn.Tag)
141+
pass.Reportf(arg.Pos(), "the given struct should be annotated with the `%s` tag", fn.Tag)
142142
})
143143

144144
return nil, err

0 commit comments

Comments
 (0)