aboutsummaryrefslogtreecommitdiff
path: root/doc/go_spec.html
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-08-02 14:39:11 +0800
committerGopher Robot <gobot@golang.org>2023-08-03 14:43:29 +0000
commit3c25d832afe52982e1423023076e3caa6705d41f (patch)
treeab018cb25fca61ecadfba0dc25351ecd18c05087 /doc/go_spec.html
parenta4e694b8d41be82b3605f577833dfcb85788ee2b (diff)
downloadgo-3c25d832afe52982e1423023076e3caa6705d41f.tar.gz
go-3c25d832afe52982e1423023076e3caa6705d41f.zip
doc: fix html tags
Change-Id: I535bec2de8f4f7dd415896a020d71c373c22be56 Reviewed-on: https://go-review.googlesource.com/c/go/+/515155 Run-TryBot: shuang cui <imcusg@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r--doc/go_spec.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index d1b8bf2a91..371db8c28f 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -884,7 +884,7 @@ are required when different numeric types are mixed in an expression
or assignment. For instance, <code>int32</code> and <code>int</code>
are not the same type even though they may have the same size on a
particular architecture.
-
+</p>
<h3 id="String_types">String types</h3>
@@ -3910,7 +3910,7 @@ For <code>a</code> of <a href="#Type_parameter_declarations">type parameter type
that <code>P</code> is instantiated with, and the type of <code>a[x]</code> is
the type of the (identical) element types.</li>
<li><code>a[x]</code> may not be assigned to if <code>P</code>'s type set
- includes string types.
+ includes string types.</li>
</ul>
<p>
@@ -4639,7 +4639,7 @@ Type inference succeeds if no unification step fails and the map has
an entry for each type parameter.
</p>
-</pre>
+<p>
For example, given the type equation with the bound type parameter
<code>P</code>
</p>
@@ -4803,6 +4803,7 @@ As the <code>++</code> and <code>--</code> operators form
statements, not expressions, they fall
outside the operator hierarchy.
As a consequence, statement <code>*p++</code> is the same as <code>(*p)++</code>.
+</p>
<p>
There are five precedence levels for binary operators.
Multiplication operators bind strongest, followed by addition