1
0
mirror of https://github.com/golang/go synced 2024-11-20 09:54:45 -07:00

govet: fix comment

R=r, r2
CC=golang-dev
https://golang.org/cl/3712041
This commit is contained in:
Christopher Wedgwood 2010-12-16 12:35:38 -08:00 committed by Rob Pike
parent fd021cbe8f
commit 678a70e3b6

View File

@ -312,7 +312,7 @@ func (f *File) checkPrint(call *ast.CallExpr, name string, skip int) {
}
// This function never executes, but it serves as a simple test for the program.
// Test with govet --funcs="Bad:1,Badf:1,Warn:1,Warnf:1" govet.go
// Test with govet -printfuncs="Bad:1,Badf:1,Warn:1,Warnf:1" govet.go
func BadFunctionUsedInTests() {
fmt.Println() // niladic call
fmt.Println("%s", "hi") // % in call to Println