]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: explicitly state that Type values can be used as map keys
authorTim Cooper <tim.cooper@layeh.com>
Mon, 1 Jan 2018 16:11:58 +0000 (12:11 -0400)
committerIan Lance Taylor <iant@golang.org>
Tue, 2 Jan 2018 13:39:20 +0000 (13:39 +0000)
Fixes #6535

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

index dce40582bb4bb515fd0096046f86233c43507427..9c967de45c07df16453fe82caeafb6fe9f18c820 100644 (file)
@@ -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.