Skip to content

Commit a368bc0

Browse files
authored
escape &&
1 parent 17a02b9 commit a368bc0

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)