Commit 678a70e3 authored by Christopher Wedgwood's avatar Christopher Wedgwood Committed by Rob Pike

govet: fix comment

R=r, r2
CC=golang-dev
https://golang.org/cl/3712041
parent fd021cbe
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment