diff options
author | Robert Griesemer <gri@golang.org> | 2022-01-26 14:01:52 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2022-01-26 23:43:39 +0000 |
commit | db48840cfc5ea9f8067cd5238827965ea01cdde1 (patch) | |
tree | 6a2599ab1a3717fa1a54315d27f5bb1b1edeb20e | |
parent | ef0b09c526d78de23186522d50ff93ad657014c0 (diff) | |
download | go-db48840cfc5ea9f8067cd5238827965ea01cdde1.tar.gz go-db48840cfc5ea9f8067cd5238827965ea01cdde1.zip |
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 <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r-- | doc/go_spec.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index 6f4aefcf4f..b25cf5fa6e 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -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 |