diff --git a/doc/go_spec.html b/doc/go_spec.html index 11f44d896d..8643d94476 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -2269,7 +2269,6 @@ An identifier is exported if both: All other identifiers are not exported.

-

Uniqueness of identifiers

@@ -3715,6 +3714,26 @@ For a of map type M: for the element type of M +

+For a of type parameter type P: +

+ +

Otherwise a[x] is illegal.

@@ -6468,12 +6487,24 @@ 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 cap(s) [n]T, *[n]T array length (== n) []T slice capacity chan T channel buffer capacity + type parameter see below +

+If the argument type is a type parameter P, +P must have specific types, and +the call len(e) (or cap(e) respectively) must be valid for +each specific type of P. +The result is the length (or capacity, respectively) of the argument whose type +corresponds to the type argument with which P was +instantiated. +

+

The capacity of a slice is the number of elements for which there is space allocated in the underlying array.