Skip to content

Commit 33529db

Browse files
zigo101gopherbot
authored andcommitted
spec: escape double-ampersands
Change-Id: I7ce375f975a86e4c2494d2003aeb9b4a86caff3e GitHub-Last-Rev: a368bc0 GitHub-Pull-Request: #76299 Reviewed-on: https://go-review.googlesource.com/c/go/+/720460 Auto-Submit: Sean Liao <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Mark Freeman <[email protected]> Reviewed-by: Sean Liao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent dc42565 commit 33529db

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
@@ -4857,7 +4857,7 @@ <h4 id="Operator_precedence">Operator precedence</h4>
48574857
x &lt;= f() // x &lt;= f()
48584858
^a &gt;&gt; b // (^a) >> b
48594859
f() || g() // f() || g()
4860-
x == y+1 &amp;&amp; &lt;-chanInt &gt; 0 // (x == (y+1)) && ((&lt;-chanInt) > 0)
4860+
x == y+1 &amp;&amp; &lt;-chanInt &gt; 0 // (x == (y+1)) &amp;&amp; ((&lt;-chanInt) > 0)
48614861
</pre>
48624862

48634863

@@ -6867,7 +6867,7 @@ <h4 id="For_range">For statements with <code>range</code> clause</h4>
68676867
}
68686868

68696869
func (t *Tree[K, V]) walk(yield func(key K, val V) bool) bool {
6870-
return t == nil || t.left.walk(yield) && yield(t.key, t.value) && t.right.walk(yield)
6870+
return t == nil || t.left.walk(yield) &amp;&amp; yield(t.key, t.value) &amp;&amp; t.right.walk(yield)
68716871
}
68726872

68736873
func (t *Tree[K, V]) Walk(yield func(key K, val V) bool) {

0 commit comments

Comments
 (0)