Skip to content

Commit

Permalink
spec: clarify alignment of arrays
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
griesemer committed Feb 7, 2017
1 parent 3e366ec commit e62aab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/go_spec.html
Original file line number Diff line number Diff line change
@@ -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"
}-->

Expand Down Expand Up @@ -6468,7 +6468,7 @@ <h3 id="Size_and_alignment_guarantees">Size and alignment guarantees</h3>
</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>

Expand Down

0 comments on commit e62aab1

Please sign in to comment.