]> Cypherpunks repositories - gostls13.git/commitdiff
spec: clarify alignment of arrays
authorRobert Griesemer <gri@golang.org>
Tue, 7 Feb 2017 07:33:21 +0000 (23:33 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 7 Feb 2017 16:28:06 +0000 (16:28 +0000)
Fixes #18950.

Change-Id: I9f94748f36a896bcadc96f0642eb1f3bff387950
Reviewed-on: https://go-review.googlesource.com/36481
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html

index dfa4222f6ee563f78014ad24af006bb9a83d52a6..603c1e75b47a9816830f0be79812b0b57d90b3af 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of February 6, 2017",
+       "Subtitle": "Version of February 7, 2017",
        "Path": "/ref/spec"
 }-->
 
@@ -6468,7 +6468,7 @@ The following minimal alignment properties are guaranteed:
 </li>
 
 <li>For a variable <code>x</code> of array type: <code>unsafe.Alignof(x)</code> is the same as
-   <code>unsafe.Alignof(x[0])</code>, but at least 1.
+       the alignment of a variable of the array's element type.
 </li>
 </ol>