mirror of
https://github.com/golang/go
synced 2024-11-20 09:54:45 -07:00
Restore comment line accidentally dropped in CL 33097.
R=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=33891 CL=33891
This commit is contained in:
parent
08a209f387
commit
8ce468ea2f
@ -409,6 +409,7 @@ type UnsafePointerValue struct {
|
||||
// Get returns the underlying uintptr value.
|
||||
// Get returns uintptr, not unsafe.Pointer, so that
|
||||
// programs that do not import "unsafe" cannot
|
||||
// obtain a value of unsafe.Pointer type from "reflect".
|
||||
func (v *UnsafePointerValue) Get() uintptr {
|
||||
return uintptr(*(*unsafe.Pointer)(v.addr));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user