Skip to content

Commit 9a428a1

Browse files
griesemerjproberts
authored andcommitted
Revert "spec: document the underlying type of comparable"
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 <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent ccb235a commit 9a428a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/go_spec.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,7 @@ <h3 id="Underlying_types">Underlying types</h3>
820820

821821
<p>
822822
Each type <code>T</code> has an <i>underlying type</i>: If <code>T</code>
823-
is one of the predeclared boolean, numeric, or string types, the predeclared
824-
type <code>comparable</code>, or a type literal,
823+
is one of the predeclared boolean, numeric, or string types, or a type literal,
825824
the corresponding underlying type is <code>T</code> itself.
826825
Otherwise, <code>T</code>'s underlying type is the underlying type of the
827826
type to which <code>T</code> refers in its <a href="#Type_declarations">type

0 commit comments

Comments
 (0)