]> Cypherpunks repositories - gostls13.git/commit
reflect: correct documentation of Value.UnsafeAddr
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 18 Sep 2021 03:24:31 +0000 (10:24 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 18 Oct 2021 16:32:23 +0000 (16:32 +0000)
commit42515418a99f2540427a5d32189f6d44fb06939e
tree30ff40c5c222dfe9c1f552d298e08acfbb0b178c
parent417100ec1b08bb1046e207fd08de105944668d27
reflect: correct documentation of Value.UnsafeAddr

The doc mentions that "UnsafeAddr returns a _pointer_ to v's data", but
it returns a uintptr instead, which don't have pointer semantic.

Change-Id: I557d5597cbc485356ca803eb496a99d6db8c63ba
Reviewed-on: https://go-review.googlesource.com/c/go/+/350690
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/reflect/value.go