From: Tim Cooper Date: Mon, 1 Jan 2018 16:11:58 +0000 (-0400) Subject: reflect: explicitly state that Type values can be used as map keys X-Git-Tag: go1.10beta2~75 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6317adeed7815ad335e2e97c463a7c3c4d82fc19;p=gostls13.git reflect: explicitly state that Type values can be used as map keys Fixes #6535 Change-Id: I34974c0050424c96d19ad69bf4522bb69cde2fd5 Reviewed-on: https://go-review.googlesource.com/85815 Reviewed-by: Ian Lance Taylor --- diff --git a/src/reflect/type.go b/src/reflect/type.go index dce40582bb..9c967de45c 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -32,7 +32,8 @@ import ( // calling kind-specific methods. Calling a method // inappropriate to the kind of type causes a run-time panic. // -// Type values are comparable, such as with the == operator. +// Type values are comparable, such as with the == operator, and Type can be +// used as a map key type. // Two Type values are equal if they represent identical types. type Type interface { // Methods applicable to all types.