Skip to content

Commit e62aab1

Browse files
committed
spec: clarify alignment of arrays
Fixes #18950. Change-Id: I9f94748f36a896bcadc96f0642eb1f3bff387950 Reviewed-on: https://go-review.googlesource.com/36481 Reviewed-by: Russ Cox <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 3e366ec commit e62aab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/go_spec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--{
22
"Title": "The Go Programming Language Specification",
3-
"Subtitle": "Version of February 6, 2017",
3+
"Subtitle": "Version of February 7, 2017",
44
"Path": "/ref/spec"
55
}-->
66

@@ -6468,7 +6468,7 @@ <h3 id="Size_and_alignment_guarantees">Size and alignment guarantees</h3>
64686468
</li>
64696469

64706470
<li>For a variable <code>x</code> of array type: <code>unsafe.Alignof(x)</code> is the same as
6471-
<code>unsafe.Alignof(x[0])</code>, but at least 1.
6471+
the alignment of a variable of the array's element type.
64726472
</li>
64736473
</ol>
64746474

0 commit comments

Comments
 (0)