mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
spec: close tag
Close an "a" tag. While we are here, fix some escapes.
Change-Id: I16040eff0d4beeef6230aec8fcf4315f0efd13a4
GitHub-Last-Rev: 3ba7b9f747
GitHub-Pull-Request: golang/go#75760
Reviewed-on: https://go-review.googlesource.com/c/go/+/708517
Reviewed-by: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
This commit is contained in:
parent
2a71af11fc
commit
3a05e7b032
1 changed files with 5 additions and 5 deletions
|
|
@ -3173,7 +3173,7 @@ Element = Expression | LiteralValue .
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Unless the LiteralType is a type parameter,
|
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
|
must be a struct, array, slice, or map type
|
||||||
(the syntax enforces this constraint except when the type is given
|
(the syntax enforces this constraint except when the type is given
|
||||||
as a TypeName).
|
as a TypeName).
|
||||||
|
|
@ -4873,7 +4873,7 @@ For instance, <code>x / y * z</code> is the same as <code>(x / y) * z</code>.
|
||||||
x <= f() // x <= f()
|
x <= f() // x <= f()
|
||||||
^a >> b // (^a) >> b
|
^a >> b // (^a) >> b
|
||||||
f() || g() // f() || g()
|
f() || g() // f() || g()
|
||||||
x == y+1 && <-chanInt > 0 // (x == (y+1)) && ((<-chanInt) > 0)
|
x == y+1 && <-chanInt > 0 // (x == (y+1)) && ((<-chanInt) > 0)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -6635,7 +6635,7 @@ iteration's variable at that moment.
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
var prints []func()
|
var prints []func()
|
||||||
for i := 0; i < 5; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
prints = append(prints, func() { println(i) })
|
prints = append(prints, func() { println(i) })
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
|
@ -6772,7 +6772,7 @@ if the iteration variable is preexisting, the type of the iteration values is th
|
||||||
variable, which must be of integer type.
|
variable, which must be of integer type.
|
||||||
Otherwise, if the iteration variable is declared by the "range" clause or is absent,
|
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>.
|
the type of the iteration values is the <a href="#Constants">default type</a> for <code>n</code>.
|
||||||
If <code>n</code> <= 0, the loop does not run any iterations.
|
If <code>n</code> <= 0, the loop does not run any iterations.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -7799,7 +7799,7 @@ compared lexically byte-wise:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
min(x, y) == if x <= y then x else y
|
min(x, y) == if x <= y then x else y
|
||||||
min(x, y, z) == min(min(x, y), z)
|
min(x, y, z) == min(min(x, y), z)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue