]> Cypherpunks.ru repositories - gostls13.git/commit
unsafe: clarify that Alignof returns required alignment
authorIan Lance Taylor <iant@golang.org>
Wed, 27 Jan 2016 01:23:33 +0000 (17:23 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Jan 2016 15:19:35 +0000 (15:19 +0000)
commitf49a757ad0d8f5987953684ea20153c713f7d9b9
tree327b74986801e249f1896b460351d6e48e0e7e96
parent867bef93b9a60ef07f068bc8d2d4398b76331e3c
unsafe: clarify that Alignof returns required alignment

Also document the special behavior of Alignof(s.f), and mention the
correspondence between Alignof and reflect.Type.{Align,FieldAlign}.

Change-Id: I6f81047a04c86887f1b1164473225616cae45a26
Reviewed-on: https://go-review.googlesource.com/18949
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/unsafe/unsafe.go