]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: undeprecate Ptr, PtrTo
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Oct 2021 17:13:50 +0000 (10:13 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Oct 2021 03:44:12 +0000 (03:44 +0000)
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>
src/reflect/type.go

index 0896949d7e2ac24d494b7561c34b5357228c41a3..4701e06c49bb8b52264c1da9b156cf5f333b431e 100644 (file)
@@ -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) }