diff --git a/doc/go_spec.html b/doc/go_spec.html index 3f6ea8668c..d64a0b0c82 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -1909,7 +1909,7 @@ ShortVarDecl = IdentifierList ":=" ExpressionList .

-It is a shorthand for a regular variable declaration +It is shorthand for a regular variable declaration with initializer expressions but no types:

@@ -2245,7 +2245,7 @@ element index plus one. A slice literal has the form

-and is a shortcut for a slice operation applied to an array: +and is shorthand for a slice operation applied to an array:

@@ -2462,7 +2462,7 @@ is also a pointer to a struct, x.y.z is shorthand
 for (*(*x).y).z, and so on.
 If x contains an anonymous field of type *A,
 where A is also a struct type,
-x.f is a shortcut for (*x.A).f.
+x.f is shorthand for (*x.A).f.
 

@@ -2519,10 +2519,9 @@ a[x]

-denotes the element of the array, slice, string or map a indexed by x. -The value x is called the -index or map key, respectively. The following -rules apply: +denotes the element of the array, pointer to array, slice, string or map a indexed by x. +The value x is called the index or map key, respectively. +The following rules apply:

@@ -2537,44 +2536,48 @@ If a is not a map:

-For a of type A or *A -where A is an array type: +For a of array type A:

-For a of type S where S is a slice type: +For a of pointer to array type:

+ +

+For a of slice type S: +

+

-For a of type T -where T is a string type: +For a of string type:

-For a of type M -where M is a map type: +For a of map type M: