diff options
author | Adam Langley <agl@golang.org> | 2009-11-16 15:39:04 -0800 |
---|---|---|
committer | Adam Langley <agl@golang.org> | 2009-11-16 15:39:04 -0800 |
commit | 1cdfe9fa282228027b26ee5bf9c248214f7d1907 (patch) | |
tree | 5b282cdbcf59c63ab3ef5bc50fef1e02ef6a497f | |
parent | af872b2ba4b77325c383e698cdf81ee01c8ab66a (diff) | |
download | go-1cdfe9fa282228027b26ee5bf9c248214f7d1907.tar.gz go-1cdfe9fa282228027b26ee5bf9c248214f7d1907.zip |
unsafe: documentation typo.
Fixes #236.
R=r
CC=golang-dev
https://golang.org/cl/155072
-rw-r--r-- | src/pkg/unsafe/unsafe.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/unsafe/unsafe.go b/src/pkg/unsafe/unsafe.go index a766e546a4..d55aa2446d 100644 --- a/src/pkg/unsafe/unsafe.go +++ b/src/pkg/unsafe/unsafe.go @@ -30,7 +30,7 @@ func Sizeof(v ArbitraryType) int // number of bytes between the start of the struct and the start of the field. func Offsetof(v ArbitraryType) int -// Alignof returns the alignment of the value v. It is the minimum value m such +// 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. func Alignof(v ArbitraryType) int |