]> Cypherpunks repositories - gostls13.git/commit
reflect: enhance docs for IsZero and IsValid
authorMarko Kungla <marko.kungla@gmail.com>
Sat, 7 Sep 2019 09:07:08 +0000 (12:07 +0300)
committerIan Lance Taylor <iant@golang.org>
Wed, 11 Sep 2019 00:16:10 +0000 (00:16 +0000)
commita5026af57c7934f0856cfd4b539a7859d85a0474
treeeb0814237206ed18558e9745bf8ca414d4cf5470
parentb9704872d11ae224ca96a1bd2fab0da10ce806d7
reflect: enhance docs for IsZero and IsValid

Make it clear that IsValid checks that we have valid
reflect.Value and not the value of `v`

fixes #34152

Change-Id: Ib3d359eeb3a82bf733b9ed17c777fc4c143bc29c
Reviewed-on: https://go-review.googlesource.com/c/go/+/193841
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/reflectlite/value.go
src/reflect/value.go