From: Robert Griesemer Date: Wed, 26 Jan 2022 03:12:35 +0000 (-0800) Subject: spec: document the underlying type of comparable X-Git-Tag: go1.18beta2~25 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=719e9894f9a471cd74b8469d9231cd2798b33999;p=gostls13.git spec: document the underlying type of comparable For #50791. Change-Id: I7f135bb6626128a3cee9fd71c57535c1fc83ac7f Reviewed-on: https://go-review.googlesource.com/c/go/+/380854 Trust: Robert Griesemer Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go_spec.html b/doc/go_spec.html index b25cf5fa6e..6f4aefcf4f 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -820,7 +820,8 @@ 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, or a type literal, +is one of the predeclared boolean, numeric, or string types, the predeclared +type comparable, 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