]> Cypherpunks repositories - gostls13.git/commit
unsafe: document that Alignof, Offsetof, and Sizeof return a constant
authorRob Pike <r@golang.org>
Thu, 11 Oct 2018 02:13:03 +0000 (13:13 +1100)
committerRob Pike <r@golang.org>
Thu, 11 Oct 2018 02:32:20 +0000 (02:32 +0000)
commitdaf6f254336844ad8cf538640d81f0193988b62a
treee24a9714f3557838c8062690fadebe323d1767ff
parent27965c14364a9812794cd4933b539f04a9d7c6c9
unsafe: document that Alignof, Offsetof, and Sizeof return a constant

Nothing is changing but the documentation, which did not mention
this property of these functions.

Fixes #27587.

Change-Id: I75bcee4a1dd9ec8cd82826c9a6e02ba7d599f719
Reviewed-on: https://go-review.googlesource.com/c/141377
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/unsafe/unsafe.go