Skip to content

Commit 4b787c8

Browse files
committed
reflect: remove stale comment in unpackEface
e.word (or more properly e.Data) is always a pointer now. Change-Id: I6a6a6964b17797e234829691ced842ab431ec38f Reviewed-on: https://go-review.googlesource.com/c/go/+/705535 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Junyang Shao <[email protected]> Reviewed-by: Keith Randall <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 3df27cd commit 4b787c8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/reflect/value.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ func packEfaceData(v Value) unsafe.Pointer {
156156
// unpackEface converts the empty interface i to a Value.
157157
func unpackEface(i any) Value {
158158
e := (*abi.EmptyInterface)(unsafe.Pointer(&i))
159-
// NOTE: don't read e.word until we know whether it is really a pointer or not.
160159
t := e.Type
161160
if t == nil {
162161
return Value{}

0 commit comments

Comments
 (0)