From b7fa0f941f05fdf8420f15cd5ebe2f209da172e0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 21 Jan 2022 14:30:39 -0800 Subject: [PATCH] spec: minor formatting and link cleanups Mostly from CL 367954. Change-Id: Id003b0f785a286a1a649e4d6e8c87d0418a36545 Reviewed-on: https://go-review.googlesource.com/c/go/+/379920 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Robert Griesemer --- doc/go_spec.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 0d7de5e6d1..b25cf5fa6e 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -1602,7 +1602,6 @@ slice. If the key type is an interface type, these comparison operators must be defined for the dynamic key values; failure will cause a run-time panic. -

@@ -2260,7 +2259,6 @@ Functions:
 	make new panic print println real recover
 
-

Exported identifiers

@@ -2936,7 +2934,7 @@ or a parenthesized expression.

An operand name denoting a type-parameterized function -may be followed by a list of type arguments; the +may be followed by a list of type arguments; the resulting operand is an instantiated function.

@@ -4130,8 +4128,8 @@ with the same underlying array.

Instantiations

-A parameterized function or type is instantiated by substituting type arguments -for the type parameters. +A parameterized function or type is instantiated by substituting +type arguments for the type parameters. Instantiation proceeds in two phases:

@@ -4337,7 +4335,6 @@ The bitwise logical and shift operators apply to integers only. >> right shift integer >> integer >= 0 -

Integer operators

@@ -4430,6 +4427,7 @@ the unsigned integer's type. Loosely speaking, these unsigned integer operations discard high bits upon overflow, and programs may rely on "wrap around".

+

For signed integers, the operations +, -, *, /, and << may legally @@ -5934,7 +5932,7 @@ For a string value, the "range" clause iterates over the Unicode code points in the string starting at byte index 0. On successive iterations, the index value will be the index of the first byte of successive UTF-8-encoded code points in the string, and the second value, of type rune, will be the value of -the corresponding code point. If the iteration encounters an invalid +the corresponding code point. If the iteration encounters an invalid UTF-8 sequence, the second value will be 0xFFFD, the Unicode replacement character, and the next iteration will advance a single byte in the string. @@ -6485,7 +6483,6 @@ The multi-valued receive operation returns a received value along with an indication of whether the channel is closed.

-

Length and capacity

@@ -6502,12 +6499,12 @@ len(s) string type string length in bytes []T slice length map[K]T map length (number of defined keys) chan T number of elements queued in channel buffer - type parameter see below + type parameter see below cap(s) [n]T, *[n]T array length (== n) []T slice capacity chan T channel buffer capacity - type parameter see below + type parameter see below