From 3c25d832afe52982e1423023076e3caa6705d41f Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 2 Aug 2023 14:39:11 +0800 Subject: [PATCH] doc: fix html tags Change-Id: I535bec2de8f4f7dd415896a020d71c373c22be56 Reviewed-on: https://go-review.googlesource.com/c/go/+/515155 Run-TryBot: shuang cui Reviewed-by: Dmitri Shuralyov Run-TryBot: Dmitri Shuralyov TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov Reviewed-by: David Chase --- doc/go1.17_spec.html | 5 ++++- doc/go1.21.html | 6 +++++- doc/go_mem.html | 1 + doc/go_spec.html | 7 ++++--- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/doc/go1.17_spec.html b/doc/go1.17_spec.html index 0b374e7bfb..15e73c3867 100644 --- a/doc/go1.17_spec.html +++ b/doc/go1.17_spec.html @@ -914,7 +914,7 @@ are required when different numeric types are mixed in an expression or assignment. For instance, int32 and int are not the same type even though they may have the same size on a particular architecture. - +

String types

@@ -1451,6 +1451,7 @@ maps grow to accommodate the number of items stored in them, with the exception of nil maps. A nil map is equivalent to an empty map except that no elements may be added. +

Channel types

@@ -3641,6 +3642,8 @@ As the ++ and -- operators form statements, not expressions, they fall outside the operator hierarchy. As a consequence, statement *p++ is the same as (*p)++. +

+

There are five precedence levels for binary operators. Multiplication operators bind strongest, followed by addition diff --git a/doc/go1.21.html b/doc/go1.21.html index 5ecc07ddcf..45b037a204 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -484,6 +484,7 @@ Do not send CLs removing the interior tags from such phrases. Context values for equality has never been well-defined, so this is not considered to be an incompatible change. +

@@ -581,7 +582,7 @@ Do not send CLs removing the interior tags from such phrases.

- The new VersionName function + The new VersionName function returns the name for a TLS version number.

@@ -1037,6 +1038,8 @@ Do not send CLs removing the interior tags from such phrases. is no longer available as a debug option. Instead, it is available as an experiment using GOEXPERIMENT=cgocheck2. In particular this means that this mode has to be selected at build time instead of startup time. +

+

GODEBUG=cgocheck=1 is still available (and is still the default).

@@ -1171,6 +1174,7 @@ Do not send CLs removing the interior tags from such phrases. associated support throughout the system has been upgraded to Unicode 15.0.0.

+

Ports

diff --git a/doc/go_mem.html b/doc/go_mem.html index e0a7539472..026c1172e3 100644 --- a/doc/go_mem.html +++ b/doc/go_mem.html @@ -159,6 +159,7 @@ union of the sequenced before and synchronized before relations. For an ordinary (non-synchronizing) data read r on a memory location x, W(r) must be a write w that is visible to r, where visible means that both of the following hold: +

  1. w happens before r. 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, int32 and int are not the same type even though they may have the same size on a particular architecture. - +

    String types

    @@ -3910,7 +3910,7 @@ For a of type parameter type that P is instantiated with, and the type of a[x] is the type of the (identical) element types.
  2. a[x] may not be assigned to if P's type set - includes string types. + includes string types.
  3. @@ -4639,7 +4639,7 @@ Type inference succeeds if no unification step fails and the map has an entry for each type parameter.

    - +

    For example, given the type equation with the bound type parameter P

    @@ -4803,6 +4803,7 @@ As the ++ and -- operators form statements, not expressions, they fall outside the operator hierarchy. As a consequence, statement *p++ is the same as (*p)++. +

    There are five precedence levels for binary operators. Multiplication operators bind strongest, followed by addition