summaryrefslogtreecommitdiff
path: root/libgo/go/testing/quick/quick.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/testing/quick/quick.go')
-rw-r--r--libgo/go/testing/quick/quick.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/testing/quick/quick.go b/libgo/go/testing/quick/quick.go
index bc79cc32922..909c65f788b 100644
--- a/libgo/go/testing/quick/quick.go
+++ b/libgo/go/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
}