]> Cypherpunks repositories - gostls13.git/commit
reflect: fix stale Value.Pointer comment
authorJoe Tsai <joetsai@digital-static.net>
Thu, 5 May 2022 17:20:09 +0000 (10:20 -0700)
committerJoseph Tsai <joetsai@digital-static.net>
Thu, 11 Aug 2022 16:59:34 +0000 (16:59 +0000)
commit8298c545f384a6256962cb699f0c78306380279e
treec25000dc0def4077f6488e93b48eb289a393aba9
parentf469f20e7962c9b580526ea9274bcd78689fcd42
reflect: fix stale Value.Pointer comment

The comment claims that reflect users cannot obtain an unsafe.Pointer
without also importing the unsafe package explicitly.
This is no longer true now that the Value.UnsafePointer method
directly returns an unsafe.Pointer.

Change-Id: Ia5bf2e8aead681c8fac5b011129954d075ae5a43
Reviewed-on: https://go-review.googlesource.com/c/go/+/404396
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/reflect/value.go