]> Cypherpunks repositories - gostls13.git/commit
reflect: document equality guarantee for Type
authorRoss Light <light@google.com>
Tue, 16 Aug 2016 18:10:36 +0000 (11:10 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 23 Aug 2016 23:20:48 +0000 (23:20 +0000)
commitec75230b55281a84cd1a9aa52d33d5e552c82dd4
tree078a6e725ae0b743c2176a4252cd5005fa5e99a4
parent8050782cba45c739bfb2cd735766879098c48d99
reflect: document equality guarantee for Type

The only previous mention of this property was in the String() method.
Since this is the only way to uniquely identify a type and we can't
change this property without breaking the Go 1 guarantee, it seems
better to document this property than hiding it on a method.

Fixes #16348

Change-Id: I3d25f7d6e6007e3c15c2e13010869888d0181fc2
Reviewed-on: https://go-review.googlesource.com/27170
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/reflect/type.go