diff --git a/doc/go_spec.html b/doc/go_spec.html index 30c9a9766c..f18585a2e9 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -5610,9 +5610,18 @@ func Sizeof(variable ArbitraryType) uintptr

-Any pointer or value of underlying type uintptr can be converted into -a Pointer and vice versa. +Any pointer or value of underlying type uintptr can be converted to +a Pointer type and vice versa.

+ +
+var f float64
+bits = *(*uint64)(unsafe.Pointer(&f))
+
+type ptr unsafe.Pointer
+bits = *(*uint64)(ptr(&f))
+
+

The functions Alignof and Sizeof take an expression x of any type and return the alignment or size, respectively, of a hypothetical variable v