]> Cypherpunks repositories - gostls13.git/commitdiff
doc: document the new types.Config.GoVersion field
authorRobert Findley <rfindley@google.com>
Wed, 8 Dec 2021 00:15:51 +0000 (19:15 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 8 Dec 2021 23:38:20 +0000 (23:38 +0000)
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 <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
doc/go1.18.html

index 2813ddc12c11b9c1b1873043ae3cbf2a5bea9581..8142a93b7b6f37d57ec021c169ae0087a680c913 100644 (file)
@@ -528,6 +528,11 @@ Do not send CLs removing the interior tags from such phrases.
 
 <dl id="go/types"><dt><a href="/pkg/go/types/">go/types</a></dt>
   <dd>
+               <p><!-- https://golang.org/issue/46648 -->
+                       The new <a href="/pkg/go/types/#Config.GoVersion"><code>Config.GoVersion</code></a>
+                       field sets the accepted Go language version.
+               </p>
+
     <p><!-- https://golang.org/issue/47916 -->
       Per the proposal
       <a href="https://go.googlesource.com/proposal/+/master/design/47916-parameterized-go-types.md">
@@ -540,7 +545,7 @@ Do not send CLs removing the interior tags from such phrases.
         The new type
         <a href="/pkg/go/types/#TypeParam"><code>TypeParam</code></a>, factory function
         <a href="/pkg/go/types/#NewTypeParam"><code>NewTypeParam</code></a>,
-        and associated methods were added to represent a type parameter.
+        and associated methods are added to represent a type parameter.
       </li>
       <li>
         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
         <a href="/pkg/go/types/#Named.TypeParams"><code>Named.SetTypeParams</code></a> 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).
       </li>
       <li>
         The <a href="/pkg/go/types/#Interface"><code>Interface</code></a> type has four new methods:
@@ -586,7 +591,7 @@ Do not send CLs removing the interior tags from such phrases.
         <a href="/pkg/go/types/#Term"><code>Term</code></a>, factory functions
         <a href="/pkg/go/types/#NewUnion"><code>NewUnion</code></a> and
         <a href="/pkg/go/types/#NewTerm"><code>NewTerm</code></a>, and associated
-        methods were added to represent type sets in interfaces.
+        methods are added to represent type sets in interfaces.
       </li>
       <li>
         The new function
@@ -600,12 +605,12 @@ Do not send CLs removing the interior tags from such phrases.
       </li>
       <li><!-- CL 342671 -->
         The new type <a href="/pkg/go/types/#ArgumentError"><code>ArgumentError</code></a>
-        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.
       </li>
       <li><!-- CL 353089 -->
         The new type <a href="/pkg/go/types/#Context"><code>Context</code></a> and factory function
         <a href="/pkg/go/types/#NewContext"><code>NewContext</code></a>
-        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.
       </li>
     </ul>
   </dd>