Skip to content

Commit 2ff1074

Browse files
committed
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>
1 parent b8f928b commit 2ff1074

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/reflect/type.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ const (
269269
)
270270

271271
// Ptr is the old name for the Pointer kind.
272-
//
273-
// Deprecated: use the new spelling, Pointer.
274272
const Ptr = Pointer
275273

276274
// tflag is used by an rtype to signal what extra type information is
@@ -1425,9 +1423,9 @@ func TypeOf(i interface{}) Type {
14251423
var ptrMap sync.Map // map[*rtype]*ptrType
14261424

14271425
// PtrTo returns the pointer type with element t.
1428-
// For example, if t represents type Foo, PointerTo(t) represents *Foo.
1426+
// For example, if t represents type Foo, PtrTo(t) represents *Foo.
14291427
//
1430-
// Deprecated: use PointerTo. PtrTo is the old spelling.
1428+
// PtrTo is the old spelling of PointerTo.
14311429
// The two functions behave identically.
14321430
func PtrTo(t Type) Type { return PointerTo(t) }
14331431

0 commit comments

Comments
 (0)