aboutsummaryrefslogtreecommitdiff
path: root/src/reflect
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2021-10-27 10:13:50 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2021-10-28 03:44:12 +0000
commit2ff1074f5ac48e67ee079dafc9f0e314bc454510 (patch)
treecf67af84328617f0f72e576af9c7997b3b978074 /src/reflect
parentb8f928b05264cbd75a0d0dbd02d979847ac237f9 (diff)
downloadgo-2ff1074f5ac48e67ee079dafc9f0e314bc454510.tar.gz
go-2ff1074f5ac48e67ee079dafc9f0e314bc454510.zip
reflect: undeprecate Ptr, PtrTo
Fixes #48665 Change-Id: Id838f7508f6e93c4546a2aeefc2db194e647db77 Reviewed-on: https://go-review.googlesource.com/c/go/+/359175 Trust: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/reflect')
-rw-r--r--src/reflect/type.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/reflect/type.go b/src/reflect/type.go
index 0896949d7e..4701e06c49 100644
--- a/src/reflect/type.go
+++ b/src/reflect/type.go
@@ -269,8 +269,6 @@ const (
)
// Ptr is the old name for the Pointer kind.
-//
-// Deprecated: use the new spelling, Pointer.
const Ptr = Pointer
// tflag is used by an rtype to signal what extra type information is
@@ -1425,9 +1423,9 @@ func TypeOf(i interface{}) Type {
var ptrMap sync.Map // map[*rtype]*ptrType
// PtrTo returns the pointer type with element t.
-// For example, if t represents type Foo, PointerTo(t) represents *Foo.
+// For example, if t represents type Foo, PtrTo(t) represents *Foo.
//
-// Deprecated: use PointerTo. PtrTo is the old spelling.
+// PtrTo is the old spelling of PointerTo.
// The two functions behave identically.
func PtrTo(t Type) Type { return PointerTo(t) }