Skip to content

Commit

Permalink
doc/go1.22: document that reflect.PtrTo is deprecated
Browse files Browse the repository at this point in the history
Updates golang#59599.
For golang#61422.

Change-Id: I923be38b719a78dd983372acad93f710a53b0922
Reviewed-on: https://go-review.googlesource.com/c/go/+/548036
Reviewed-by: Keith Randall <[email protected]>
TryBot-Bypass: Cherry Mui <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
  • Loading branch information
cherrymui authored and ezz-no committed Feb 17, 2024
1 parent a8c0738 commit 449253d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/go1.22.html
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,12 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
a value to zero using the language <code>==</code> operator.
</p>
</dd>
<dd>
<p><!-- https://go.dev/issue/59599, CL 511035 -->
The <a href="/pkg/reflect/#PtrTo"><code>PtrTo</code></a> function is deprecated,
in favor of <a href="/pkg/reflect/#PointerTo"><code>PointerTo</code></a>.
</p>
</dd>
</dl><!-- reflect -->

<dl id="runtime/metrics"><dt><a href="/pkg/runtime/metrics/">runtime/metrics</a></dt>
Expand Down

0 comments on commit 449253d

Please sign in to comment.