From: Caleb Spare Date: Thu, 19 Jun 2014 05:49:14 +0000 (-0400) Subject: testing/quick: brought Check parameter name in line with function doc X-Git-Tag: go1.4beta1~1258 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=705a028d0fef32e4bd9c43c6469847db71a756c7;p=gostls13.git testing/quick: brought Check parameter name in line with function doc LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/102830043 --- diff --git a/src/pkg/testing/quick/quick.go b/src/pkg/testing/quick/quick.go index bc79cc3292..909c65f788 100644 --- a/src/pkg/testing/quick/quick.go +++ b/src/pkg/testing/quick/quick.go @@ -225,12 +225,12 @@ func (s *CheckEqualError) Error() string { // t.Error(err) // } // } -func Check(function interface{}, config *Config) (err error) { +func Check(f interface{}, config *Config) (err error) { if config == nil { config = &defaultConfig } - f, fType, ok := functionAndType(function) + fVal, fType, ok := functionAndType(f) if !ok { err = SetupError("argument is not a function") return @@ -255,7 +255,7 @@ func Check(function interface{}, config *Config) (err error) { return } - if !f.Call(arguments)[0].Bool() { + if !fVal.Call(arguments)[0].Bool() { err = &CheckError{i + 1, toInterfaces(arguments)} return }