Commit 8332f807 authored by Robert Griesemer's avatar Robert Griesemer

unsafe: minor doc string improvements

Change-Id: I369723c7a65f9a72c60b55704cebf40d78cf4f75
Reviewed-on: https://go-review.googlesource.com/3444Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
parent f3857f57
......@@ -24,11 +24,11 @@ type ArbitraryType int
// arbitrary memory. It should be used with extreme care.
type Pointer *ArbitraryType
// Sizeof takes an expression x of any type and returns the size of
// a hypothetical variable v as if v was declared via var v = x.
// Note that the size does not include any memory possibly referenced
// by x. For instance, if x is a slice, Sizeof returns the size of the
// slice descriptor, not the size of the memory referenced by the slice.
// Sizeof takes an expression x of any type and returns the size in bytes
// of a hypothetical variable v as if v was declared via var v = x.
// The size does not include any memory possibly referenced by x.
// For instance, if x is a slice, Sizeof returns the size of the slice
// descriptor, not the size of the memory referenced by the slice.
func Sizeof(x ArbitraryType) uintptr
// Offsetof returns the offset within the struct of the field represented by x,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment