Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/go_spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -3173,7 +3173,7 @@ <h3 id="Composite_literals">Composite literals</h3>

<p>
Unless the LiteralType is a type parameter,
its <a href="#Underlying_types">underlying type
its <a href="#Underlying_types">underlying type</a>
must be a struct, array, slice, or map type
(the syntax enforces this constraint except when the type is given
as a TypeName).
Expand Down Expand Up @@ -4873,7 +4873,7 @@ <h4 id="Operator_precedence">Operator precedence</h4>
x &lt;= f() // x &lt;= f()
^a &gt;&gt; b // (^a) >> b
f() || g() // f() || g()
x == y+1 &amp;&amp; &lt;-chanInt &gt; 0 // (x == (y+1)) && ((<-chanInt) > 0)
x == y+1 &amp;&amp; &lt;-chanInt &gt; 0 // (x == (y+1)) && ((&lt;-chanInt) > 0)
</pre>


Expand Down Expand Up @@ -6635,7 +6635,7 @@ <h4 id="For_clause">For statements with <code>for</code> clause</h4>

<pre>
var prints []func()
for i := 0; i < 5; i++ {
for i := 0; i &lt; 5; i++ {
prints = append(prints, func() { println(i) })
i++
}
Expand Down Expand Up @@ -6772,7 +6772,7 @@ <h4 id="For_range">For statements with <code>range</code> clause</h4>
variable, which must be of integer type.
Otherwise, if the iteration variable is declared by the "range" clause or is absent,
the type of the iteration values is the <a href="#Constants">default type</a> for <code>n</code>.
If <code>n</code> &lt= 0, the loop does not run any iterations.
If <code>n</code> &lt;= 0, the loop does not run any iterations.
</li>

<li>
Expand Down Expand Up @@ -7799,7 +7799,7 @@ <h3 id="Min_and_max">Min and max</h3>
</p>

<pre>
min(x, y) == if x <= y then x else y
min(x, y) == if x &lt;= y then x else y
min(x, y, z) == min(min(x, y), z)
</pre>

Expand Down