]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: fix doc nit
authorRuss Cox <rsc@golang.org>
Tue, 9 Jan 2018 20:52:01 +0000 (15:52 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 9 Jan 2018 21:48:16 +0000 (21:48 +0000)
Type values being comparable implies that Type is a valid map key type.
As previously written, they sound unrelated.

Change-Id: I8e2235275d62898bfb47de850e8257b51ab5cbd6
Reviewed-on: https://go-review.googlesource.com/87021
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.10.html
src/reflect/type.go

index 6c0ce989d23346af848117f79ef92374f3dcbe76..05e7ee26701a81563a798b212e8834ffab9baaa0 100644 (file)
@@ -295,11 +295,12 @@ Because of this change, values of the affected types need to be
 zero-initialized with the constant <code>0</code> instead of the
 constant <code>nil</code>. Go 1.10 provides <code>gofix</code>
 modules to help with that rewrite:
+</p>
+
 <pre>
 go tool fix -r cftype &lt;pkg&gt;
 go tool fix -r jni &lt;pkg&gt;
 </pre>
-</p>
 
 <p>
 For more details, see the <a href="/cmd/cgo/">cgo documentation</a>.
index 9c967de45c07df16453fe82caeafb6fe9f18c820..171fc07bfe9535e59fee3e8c565d668f30801d67 100644 (file)
@@ -32,8 +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, and Type can be
-// used as a map key type.
+// Type values are comparable, such as with the == operator,
+// so they can be used as map keys.
 // Two Type values are equal if they represent identical types.
 type Type interface {
        // Methods applicable to all types.