diff options
author | Robert Griesemer <gri@golang.org> | 2011-01-10 14:25:17 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2011-01-10 14:25:17 -0800 |
commit | dd916be3d8b2361e6d60e6615f80db7b3143b85c (patch) | |
tree | 804ab8f3ba2b0203e32aed2734b6857c71ed124a | |
parent | ab4d8bf16cc105be4c7a6ba0696924f1dc344af4 (diff) | |
download | go-dd916be3d8b2361e6d60e6615f80db7b3143b85c.tar.gz go-dd916be3d8b2361e6d60e6615f80db7b3143b85c.zip |
go spec: remove Maxalign from spec
Fixes #1285.
R=r, rsc, iant, ken2, r2
CC=golang-dev
https://golang.org/cl/3918041
-rw-r--r-- | doc/go_spec.html | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index d12d51344d..e1c7e90e23 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,5 +1,5 @@ <!-- title The Go Programming Language Specification --> -<!-- subtitle Version of December 2, 2010 --> +<!-- subtitle Version of January 7, 2011 --> <!-- TODO @@ -5212,15 +5212,11 @@ complex128 16 The following minimal alignment properties are guaranteed: </p> <ol> -<li>For a variable <code>x</code> of any type: <code>1 <= unsafe.Alignof(x) <= unsafe.Maxalign</code>. -</li> - -<li>For a variable <code>x</code> of numeric type: <code>unsafe.Alignof(x)</code> is the smaller - of <code>unsafe.Sizeof(x)</code> and <code>unsafe.Maxalign</code>, but at least 1. +<li>For a variable <code>x</code> of any type: <code>unsafe.Alignof(x)</code> is at least 1. </li> <li>For a variable <code>x</code> of struct type: <code>unsafe.Alignof(x)</code> is the largest of - all the values <code>unsafe.Alignof(x.f)</code> for each field <code>f</code> of x, but at least 1. + all the values <code>unsafe.Alignof(x.f)</code> for each field <code>f</code> of <code>x</code>, but at least 1. </li> <li>For a variable <code>x</code> of array type: <code>unsafe.Alignof(x)</code> is the same as |