]> Cypherpunks repositories - gostls13.git/commitdiff
go spec: remove Maxalign from spec
authorRobert Griesemer <gri@golang.org>
Mon, 10 Jan 2011 22:25:17 +0000 (14:25 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 10 Jan 2011 22:25:17 +0000 (14:25 -0800)
Fixes #1285.

R=r, rsc, iant, ken2, r2
CC=golang-dev
https://golang.org/cl/3918041

doc/go_spec.html

index d12d51344d4ffa1109d5c067021df82d076d94ae..e1c7e90e2335ed417d28b51eeebb454ff3ac228d 100644 (file)
@@ -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