From db48840cfc5ea9f8067cd5238827965ea01cdde1 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 26 Jan 2022 14:01:52 -0800 Subject: [PATCH] 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 --- doc/go_spec.html | 3 +-- 1 file changed, 1 insertion(+), 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

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 -- 2.48.1