From d6c4583ad4923533ddc9f5792ed3b66f3b9f9feb Mon Sep 17 00:00:00 2001 From: Robert Findley Date: Tue, 7 Dec 2021 19:15:51 -0500 Subject: [PATCH] doc: document the new types.Config.GoVersion field Also update some other go/types release notes to use the present tense. Updates #47694 Change-Id: I654371c065e76fd5d22679d0d3c1a81bc3d1e513 Reviewed-on: https://go-review.googlesource.com/c/go/+/370235 Trust: Robert Findley Run-TryBot: Robert Findley TryBot-Result: Gopher Robot Reviewed-by: Robert Griesemer --- doc/go1.18.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/go1.18.html b/doc/go1.18.html index 2813ddc12c..8142a93b7b 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -528,6 +528,11 @@ Do not send CLs removing the interior tags from such phrases.
go/types
+

+ The new Config.GoVersion + field sets the accepted Go language version. +

+

Per the proposal @@ -540,7 +545,7 @@ Do not send CLs removing the interior tags from such phrases. The new type TypeParam, factory function NewTypeParam, - and associated methods were added to represent a type parameter. + and associated methods are added to represent a type parameter.

  • The new type @@ -569,7 +574,7 @@ Do not send CLs removing the interior tags from such phrases. type arguments or type parameters of an instantiated or parameterized type, and Named.SetTypeParams to set the type parameters (for instance, when importing a named type where allocation of the named - type and setting of type parameters cannot be done both at once due to possible cycles). + type and setting of type parameters cannot be done simultaneously due to possible cycles).
  • The Interface type has four new methods: @@ -586,7 +591,7 @@ Do not send CLs removing the interior tags from such phrases. Term, factory functions NewUnion and NewTerm, and associated - methods were added to represent type sets in interfaces. + methods are added to represent type sets in interfaces.
  • The new function @@ -600,12 +605,12 @@ Do not send CLs removing the interior tags from such phrases.
  • The new type ArgumentError - and associated methods were added to represent an error related to a type argument. + and associated methods are added to represent an error related to a type argument.
  • The new type Context and factory function NewContext - were added to facilitate sharing of identical type instances across type-checked packages. + are added to facilitate sharing of identical type instances across type-checked packages.
  • -- 2.48.1