diff options
Diffstat (limited to 'src/testing/quick/quick.go')
-rw-r--r-- | src/testing/quick/quick.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/quick/quick.go b/src/testing/quick/quick.go index 95a635bade..d7117420a3 100644 --- a/src/testing/quick/quick.go +++ b/src/testing/quick/quick.go @@ -115,7 +115,7 @@ func sizedValue(t reflect.Type, rand *rand.Rand, size int) (value reflect.Value, } case reflect.Pointer: if rand.Intn(size) == 0 { - v.Set(reflect.Zero(concrete)) // Generate nil pointer. + v.SetZero() // Generate nil pointer. } else { elem, ok := sizedValue(concrete.Elem(), rand, size) if !ok { |