]> Cypherpunks repositories - gostls13.git/commitdiff
unsafe: documentation typo.
authorAdam Langley <agl@golang.org>
Mon, 16 Nov 2009 23:39:04 +0000 (15:39 -0800)
committerAdam Langley <agl@golang.org>
Mon, 16 Nov 2009 23:39:04 +0000 (15:39 -0800)
Fixes #236.

R=r
CC=golang-dev
https://golang.org/cl/155072

src/pkg/unsafe/unsafe.go

index a766e546a4c74042a6f2f56fcb2ac5ed1e81cba5..d55aa2446deeee4b12186ac74a36149e718cf139 100644 (file)
@@ -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