Commit 6317adee authored by Tim Cooper's avatar Tim Cooper Committed by Ian Lance Taylor

reflect: explicitly state that Type values can be used as map keys

Fixes #6535

Change-Id: I34974c0050424c96d19ad69bf4522bb69cde2fd5
Reviewed-on: https://go-review.googlesource.com/85815Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent cd97aca3
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment