Commit 1cdfe9fa authored by Adam Langley's avatar Adam Langley

unsafe: documentation typo.

Fixes #236.

R=r
CC=golang-dev
https://golang.org/cl/155072
parent af872b2b
...@@ -30,7 +30,7 @@ func Sizeof(v ArbitraryType) int ...@@ -30,7 +30,7 @@ func Sizeof(v ArbitraryType) int
// number of bytes between the start of the struct and the start of the field. // number of bytes between the start of the struct and the start of the field.
func Offsetof(v ArbitraryType) int 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. // 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 obj.f, it returns the alignment of field f within struct object obj.
func Alignof(v ArbitraryType) int func Alignof(v ArbitraryType) int
......
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