summaryrefslogtreecommitdiff
path: root/src/pkg/unsafe
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2009-11-16 15:39:04 -0800
committerAdam Langley <agl@golang.org>2009-11-16 15:39:04 -0800
commit72f21fcbaa7a4df0ab6805b1e9bc08ef48512dcf (patch)
treee8b7fff5ce8c014960620dc049881b51a16ba56f /src/pkg/unsafe
parent40d8498522f21937ff2ae864af8450756a49e6c3 (diff)
downloadgolang-72f21fcbaa7a4df0ab6805b1e9bc08ef48512dcf.tar.gz
unsafe: documentation typo.
Fixes issue 236. R=r CC=golang-dev http://codereview.appspot.com/155072
Diffstat (limited to 'src/pkg/unsafe')
-rw-r--r--src/pkg/unsafe/unsafe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/unsafe/unsafe.go b/src/pkg/unsafe/unsafe.go
index a766e546a..d55aa2446 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