summaryrefslogtreecommitdiff
path: root/src/pkg/testing/quick/quick_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/testing/quick/quick_test.go')
-rw-r--r--src/pkg/testing/quick/quick_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/testing/quick/quick_test.go b/src/pkg/testing/quick/quick_test.go
index b126e4a16..f2618c3c2 100644
--- a/src/pkg/testing/quick/quick_test.go
+++ b/src/pkg/testing/quick/quick_test.go
@@ -102,7 +102,7 @@ type myStruct struct {
}
func (m myStruct) Generate(r *rand.Rand, _ int) reflect.Value {
- return reflect.NewValue(myStruct{x: 42})
+ return reflect.ValueOf(myStruct{x: 42})
}
func myStructProperty(in myStruct) bool { return in.x == 42 }