From: Robert Griesemer Date: Wed, 26 Jan 2022 22:01:52 +0000 (-0800) Subject: Revert "spec: document the underlying type of comparable" X-Git-Tag: go1.18beta2~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=db48840cfc5ea9f8067cd5238827965ea01cdde1;p=gostls13.git 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 Reviewed-by: Ian Lance Taylor --- 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

Each type T has an underlying type: If T -is one of the predeclared boolean, numeric, or string types, the predeclared -type comparable, or a type literal, +is one of the predeclared boolean, numeric, or string types, or a type literal, the corresponding underlying type is T itself. Otherwise, T's underlying type is the underlying type of the type to which T refers in its type