diff options
author | Rob Pike <r@golang.org> | 2012-02-12 09:10:47 +1100 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2012-02-12 09:10:47 +1100 |
commit | c91042a217884908bd8e15f2309397c7cb783c7d (patch) | |
tree | fca3d9b6fd9769118969a33b254c30a050955adb /src/pkg/unsafe | |
parent | 50c27607c2cbfc3690b02589180f322f1c16711c (diff) | |
download | go-c91042a217884908bd8e15f2309397c7cb783c7d.tar.gz |
unsafe: Alignof and Offsetof now use the same style
The easy part of issue 2968.
R=golang-dev, gri
CC=golang-dev
http://codereview.appspot.com/5655059
Diffstat (limited to 'src/pkg/unsafe')
-rw-r--r-- | src/pkg/unsafe/unsafe.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/unsafe/unsafe.go b/src/pkg/unsafe/unsafe.go index 4955c2f22..b743d9d39 100644 --- a/src/pkg/unsafe/unsafe.go +++ b/src/pkg/unsafe/unsafe.go @@ -27,13 +27,13 @@ type Pointer *ArbitraryType func Sizeof(v ArbitraryType) uintptr // Offsetof returns the offset within the struct of the field represented by v, -// which must be of the form struct_value.field. In other words, it returns the +// which must be of the form structValue.field. In other words, it returns the // number of bytes between the start of the struct and the start of the field. func Offsetof(v ArbitraryType) uintptr // Alignof returns the alignment of the value v. It is the maximum value m such // that the address of a variable with the type of v will always always be zero mod m. -// If v is of the form obj.f, it returns the alignment of field f within struct object obj. +// If v is of the form structValue.field, it returns the alignment of field f within struct object obj. func Alignof(v ArbitraryType) uintptr // Typeof returns the type of an interface value, a runtime.Type. |