Skip to content

Commit

Permalink
doc/go1.18: mention new go/types/Config.Context field
Browse files Browse the repository at this point in the history
For #47694
For #47916

Change-Id: Ieeffaf161da744adfdb4da8aac58a64c109ebcab
Reviewed-on: https://go-review.googlesource.com/c/go/+/373775
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
  • Loading branch information
ianlancetaylor committed Dec 21, 2021
1 parent a1ce550 commit 60f2c12
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions doc/go1.18.html
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>

<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/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
Expand Down Expand Up @@ -669,7 +669,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<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>
are 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, via the new
<a href="/pkg/go/types/#Config.Context"><code>Config.Context</code></a>
field.
</li>
</ul>
</dd>
Expand Down

0 comments on commit 60f2c12

Please sign in to comment.