Skip to content

Commit cf2fe5d

Browse files
xen0nianlancetaylor
authored andcommitted
doc/asm: fix HTML markup
Change-Id: I33bde4835d3b83fafd55beea483f6236c4c62840 Reviewed-on: https://go-review.googlesource.com/c/go/+/338990 Reviewed-by: Ian Lance Taylor <[email protected]> Trust: Than McIntosh <[email protected]>
1 parent 1bf2cd1 commit cf2fe5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/asm.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ <h3 id="constants">Constants</h3>
125125
One is in constant evaluation.
126126
Constant expressions in the assembler are parsed using Go's operator
127127
precedence, not the C-like precedence of the original.
128-
Thus <code>3&amp;1<<2</code> is 4, not 0—it parses as <code>(3&amp;1)<<2</code>
129-
not <code>3&amp;(1<<2)</code>.
128+
Thus <code>3&amp;1&lt;&lt;2</code> is 4, not 0—it parses as <code>(3&amp;1)&lt;&lt;2</code>
129+
not <code>3&amp;(1&lt;&lt;2)</code>.
130130
Also, constants are always evaluated as 64-bit unsigned integers.
131131
Thus <code>-2</code> is not the integer value minus two,
132132
but the unsigned 64-bit integer with the same bit pattern.
@@ -914,8 +914,6 @@ <h3 id="ppc64">PPC64</h3>
914914
Reference: <a href="/pkg/cmd/internal/obj/ppc64">Go PPC64 Assembly Instructions Reference Manual</a>
915915
</p>
916916

917-
</ul>
918-
919917
<h3 id="s390x">IBM z/Architecture, a.k.a. s390x</h3>
920918

921919
<p>

0 commit comments

Comments
 (0)