From: Robin Eklind nil
.
PointerType = "*" BaseType .
-BaseType = Type .
+BaseType = Type .
@@ -2118,9 +2118,9 @@ operand only on the left-hand side of an assignment.
-Operand = Literal | OperandName | MethodExpr | "(" Expression ")" . -Literal = BasicLit | CompositeLit | FunctionLit . -BasicLit = int_lit | float_lit | imaginary_lit | rune_lit | string_lit . +Operand = Literal | OperandName | MethodExpr | "(" Expression ")" . +Literal = BasicLit | CompositeLit | FunctionLit . +BasicLit = int_lit | float_lit | imaginary_lit | rune_lit | string_lit . OperandName = identifier | QualifiedIdent.@@ -3598,7 +3598,7 @@ or an array indexing operation of an addressable array. As an exception to the addressability requirement,
x
may also be a
(possibly parenthesized)
composite literal.
-If the evaluation of x
would cause a run-time panic,
+If the evaluation of x
would cause a run-time panic,
then the evaluation of &x
does too.
@@ -4052,7 +4052,7 @@ n := map[int]int{a: f()} // n may be {2: 3} or {3: 3}: evaluation order bet
At package level, initialization dependencies override the left-to-right rule for individual initialization expressions, but not for operands within each -expression: +expression:
@@ -5942,7 +5942,7 @@ variable or function.
m
is a
method value or
-method expression of the form
+method expression of the form
t.m
, where the (static) type of t
is
not an interface type, and the method m
is in the
method set of t
.
@@ -5951,7 +5951,7 @@ It is immaterial whether the resulting function value
x
depends on a variable
+A variable, function, or method x
depends on a variable
y
if x
's initialization expression or body
(for functions and methods) contains a reference to y
or to a function or method that depends on y
.
@@ -6003,7 +6003,7 @@ func init() { ⦠}
-Multiple such functions may be defined, even within a single
+Multiple such functions may be defined, even within a single
source file. The init
identifier is not
declared and thus
init
functions cannot be referred to from anywhere