summaryrefslogtreecommitdiff
path: root/src/cmd/vet/method.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/vet/method.go')
-rw-r--r--src/cmd/vet/method.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/vet/method.go b/src/cmd/vet/method.go
index bf982dc7a..8064235f4 100644
--- a/src/cmd/vet/method.go
+++ b/src/cmd/vet/method.go
@@ -93,7 +93,7 @@ func (f *File) checkCanonicalMethod(id *ast.Ident, t *ast.FuncType) {
actual = strings.TrimPrefix(actual, "func")
actual = id.Name + actual
- f.Warnf(id.Pos(), "method %s should have signature %s", actual, expectFmt)
+ f.Badf(id.Pos(), "method %s should have signature %s", actual, expectFmt)
}
}