]> Cypherpunks repositories - gostls13.git/commit
reflect,doc: use "the" instead of "a" in IsZero docs
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 17 Jun 2019 19:57:40 +0000 (12:57 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 18 Jun 2019 15:08:08 +0000 (15:08 +0000)
commit52572afa20543a6c71ff536de7aa1ffc33eeba76
tree839b4eb0165b21edeea0392ecc2ad11b854c9037
parentbc27b64dba0ac74cd084d5331862d8fbf587c262
reflect,doc: use "the" instead of "a" in IsZero docs

There is a subtle distinction between a value
*being* the zero value vs being *equal to* the zero value.
This was discussed at length in #31450.

Using "a zero value" in the docs suggests that there may
be more than zero value. That is possible on the "equal to
zero value" reading, but not the "is zero" reading that we
selected for the semantics of IsZero.

This change attempts to prevent any confusion on this front by
switching to "the zero value" in the documentation.

And while we're here, eliminate a double-space.
(Darn macbook keyboards.)

Change-Id: Iaa02ba297438793f5a90be9919a4d53baef92f8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/182617
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.13.html
src/reflect/value.go