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
This commit is contained in:
Caleb Spare 2014-06-19 01:49:14 -04:00 committed by Shenghou Ma
parent 4ecf0b103a
commit 705a028d0f
1 changed files with 3 additions and 3 deletions

View File

@ -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
}