reflect: undeprecate Value.{Pointer,UnsafeAddr}
Fixes #49187
Change-Id: I4d8c87af8a709f1b909dd4fae3734d422eb36900
Reviewed-on: https://go-review.googlesource.com/c/go/+/359194
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/src/reflect/value.go b/src/reflect/value.go
index 5d9964e..618d388 100644
--- a/src/reflect/value.go
+++ b/src/reflect/value.go
@@ -1934,7 +1934,7 @@
// element of the slice. If the slice is nil the returned value
// is 0. If the slice is empty but non-nil the return value is non-zero.
//
-// Deprecated: use uintptr(Value.UnsafePointer()) to get the equivalent result.
+// It's preferred to use uintptr(Value.UnsafePointer()) to get the equivalent result.
func (v Value) Pointer() uintptr {
k := v.kind()
switch k {
@@ -2479,7 +2479,7 @@
// It is for advanced clients that also import the "unsafe" package.
// It panics if v is not addressable.
//
-// Deprecated: use uintptr(Value.Addr().UnsafePointer()) to get the equivalent result.
+// It's preferred to use uintptr(Value.Addr().UnsafePointer()) to get the equivalent result.
func (v Value) UnsafeAddr() uintptr {
if v.typ == nil {
panic(&ValueError{"reflect.Value.UnsafeAddr", Invalid})