]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "spec: document the underlying type of comparable"
authorRobert Griesemer <gri@golang.org>
Wed, 26 Jan 2022 22:01:52 +0000 (14:01 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 26 Jan 2022 23:43:39 +0000 (23:43 +0000)
This reverts CL 380854.

Per the conluding discussions on #50791. A follow-up will
document `comparable` more thoroughly.

For #50791.

Change-Id: I15db9051784a012f713e28d725c3b8bbfeb40569
Reviewed-on: https://go-review.googlesource.com/c/go/+/381076
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html

index 6f4aefcf4fd8ecfd249d6050e860bc2238441bc0..b25cf5fa6e2287f7792016d9c04a0ea9acccdc30 100644 (file)
@@ -820,8 +820,7 @@ An alias denotes a named type if the type given in the alias declaration is a na
 
 <p>
 Each type <code>T</code> has an <i>underlying type</i>: If <code>T</code>
-is one of the predeclared boolean, numeric, or string types, the predeclared
-type <code>comparable</code>, or a type literal,
+is one of the predeclared boolean, numeric, or string types, or a type literal,
 the corresponding underlying type is <code>T</code> itself.
 Otherwise, <code>T</code>'s underlying type is the underlying type of the
 type to which <code>T</code> refers in its <a href="#Type_declarations">type