Commit cac006ae authored by Robin Eklind's avatar Robin Eklind Committed by Robert Griesemer

spec: Fix indentation and remove trailing white space characters.

LGTM=gri
R=golang-codereviews, bradfitz, gri
CC=golang-codereviews
https://golang.org/cl/133330043
parent b70bc22c
...@@ -1034,7 +1034,7 @@ The value of an uninitialized pointer is <code>nil</code>. ...@@ -1034,7 +1034,7 @@ The value of an uninitialized pointer is <code>nil</code>.
<pre class="ebnf"> <pre class="ebnf">
PointerType = "*" BaseType . PointerType = "*" BaseType .
BaseType = Type . BaseType = Type .
</pre> </pre>
<pre> <pre>
...@@ -2118,9 +2118,9 @@ operand only on the left-hand side of an <a href="#Assignments">assignment</a>. ...@@ -2118,9 +2118,9 @@ operand only on the left-hand side of an <a href="#Assignments">assignment</a>.
</p> </p>
<pre class="ebnf"> <pre class="ebnf">
Operand = Literal | OperandName | MethodExpr | "(" Expression ")" . Operand = Literal | OperandName | MethodExpr | "(" Expression ")" .
Literal = BasicLit | CompositeLit | FunctionLit . Literal = BasicLit | CompositeLit | FunctionLit .
BasicLit = int_lit | float_lit | imaginary_lit | rune_lit | string_lit . BasicLit = int_lit | float_lit | imaginary_lit | rune_lit | string_lit .
OperandName = identifier | QualifiedIdent. OperandName = identifier | QualifiedIdent.
</pre> </pre>
...@@ -3598,7 +3598,7 @@ or an array indexing operation of an addressable array. ...@@ -3598,7 +3598,7 @@ or an array indexing operation of an addressable array.
As an exception to the addressability requirement, <code>x</code> may also be a As an exception to the addressability requirement, <code>x</code> may also be a
(possibly parenthesized) (possibly parenthesized)
<a href="#Composite_literals">composite literal</a>. <a href="#Composite_literals">composite literal</a>.
If the evaluation of <code>x</code> would cause a <a href="#Run_time_panics">run-time panic</a>, If the evaluation of <code>x</code> would cause a <a href="#Run_time_panics">run-time panic</a>,
then the evaluation of <code>&amp;x</code> does too. then the evaluation of <code>&amp;x</code> does too.
</p> </p>
...@@ -4052,7 +4052,7 @@ n := map[int]int{a: f()} // n may be {2: 3} or {3: 3}: evaluation order bet ...@@ -4052,7 +4052,7 @@ n := map[int]int{a: f()} // n may be {2: 3} or {3: 3}: evaluation order bet
<p> <p>
At package level, initialization dependencies override the left-to-right rule At package level, initialization dependencies override the left-to-right rule
for individual initialization expressions, but not for operands within each for individual initialization expressions, but not for operands within each
expression: expression:
</p> </p>
<pre> <pre>
...@@ -5942,7 +5942,7 @@ variable or function. ...@@ -5942,7 +5942,7 @@ variable or function.
<li> <li>
A reference to a method <code>m</code> is a A reference to a method <code>m</code> is a
<a href="#Method_values">method value</a> or <a href="#Method_values">method value</a> or
<a href="#Method_expressions">method expression</a> of the form <a href="#Method_expressions">method expression</a> of the form
<code>t.m</code>, where the (static) type of <code>t</code> is <code>t.m</code>, where the (static) type of <code>t</code> is
not an interface type, and the method <code>m</code> is in the not an interface type, and the method <code>m</code> is in the
<a href="#Method_sets">method set</a> of <code>t</code>. <a href="#Method_sets">method set</a> of <code>t</code>.
...@@ -5951,7 +5951,7 @@ It is immaterial whether the resulting function value ...@@ -5951,7 +5951,7 @@ It is immaterial whether the resulting function value
</li> </li>
<li> <li>
A variable, function, or method <code>x</code> depends on a variable A variable, function, or method <code>x</code> depends on a variable
<code>y</code> if <code>x</code>'s initialization expression or body <code>y</code> if <code>x</code>'s initialization expression or body
(for functions and methods) contains a reference to <code>y</code> (for functions and methods) contains a reference to <code>y</code>
or to a function or method that depends on <code>y</code>. or to a function or method that depends on <code>y</code>.
...@@ -6003,7 +6003,7 @@ func init() { … } ...@@ -6003,7 +6003,7 @@ func init() { … }
</pre> </pre>
<p> <p>
Multiple such functions may be defined, even within a single Multiple such functions may be defined, even within a single
source file. The <code>init</code> identifier is not source file. The <code>init</code> identifier is not
<a href="#Declarations_and_scope">declared</a> and thus <a href="#Declarations_and_scope">declared</a> and thus
<code>init</code> functions cannot be referred to from anywhere <code>init</code> functions cannot be referred to from anywhere
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment