mirror of
https://github.com/golang/go
synced 2024-11-17 00:04:40 -07:00
doc/go1.22: document that reflect.PtrTo is deprecated
Updates #59599. For #61422. Change-Id: I923be38b719a78dd983372acad93f710a53b0922 Reviewed-on: https://go-review.googlesource.com/c/go/+/548036 Reviewed-by: Keith Randall <khr@google.com> TryBot-Bypass: Cherry Mui <cherryyz@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
b55bf2d786
commit
f360ffd95a
@ -633,6 +633,12 @@ defer func() {
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user