]> Cypherpunks repositories - gostls13.git/commitdiff
unsafe: minor doc string improvements
authorRobert Griesemer <gri@golang.org>
Wed, 28 Jan 2015 19:40:32 +0000 (11:40 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 28 Jan 2015 19:42:15 +0000 (19:42 +0000)
Change-Id: I369723c7a65f9a72c60b55704cebf40d78cf4f75
Reviewed-on: https://go-review.googlesource.com/3444
Reviewed-by: Alan Donovan <adonovan@google.com>
src/unsafe/unsafe.go

index f492e9758b9ce34aa4314a4c73812857ac792c92..752792f41bf5bc6dfcd05f10c3e8ac588ab939dc 100644 (file)
@@ -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,