spec: align EBNF rules consistently (cosmetic change)

Change-Id: Ib1b14b8880c6de5606f7f425a5fc1c8749d8a4b7
Reviewed-on: https://go-review.googlesource.com/c/go/+/635799
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
This commit is contained in:
Robert Griesemer 2024-12-12 11:28:09 -08:00 committed by Gopher Robot
parent 38e9a671d7
commit 80a2982a80

View file

@ -1,6 +1,6 @@
<!--{ <!--{
"Title": "The Go Programming Language Specification", "Title": "The Go Programming Language Specification",
"Subtitle": "Language version go1.24 (Nov 20, 2024)", "Subtitle": "Language version go1.24 (Dec 12, 2024)",
"Path": "/ref/spec" "Path": "/ref/spec"
}--> }-->
@ -3450,8 +3450,7 @@ Primary expressions are the operands for unary and binary expressions.
</p> </p>
<pre class="ebnf"> <pre class="ebnf">
PrimaryExpr = PrimaryExpr = Operand |
Operand |
Conversion | Conversion |
MethodExpr | MethodExpr |
PrimaryExpr Selector | PrimaryExpr Selector |
@ -5916,8 +5915,7 @@ Statements control execution.
</p> </p>
<pre class="ebnf"> <pre class="ebnf">
Statement = Statement = Declaration | LabeledStmt | SimpleStmt |
Declaration | LabeledStmt | SimpleStmt |
GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt | GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt |
FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt | FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
DeferStmt . DeferStmt .