Skip to content

Commit 32fe825

Browse files
committed
Use variable in list-or-variable
1 parent 11b1391 commit 32fe825

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/10-expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ keyed-list-expression-list:
603603
604604
list-or-variable:
605605
list-intrinsic
606-
expression
606+
variable
607607
-->
608608

609609
<pre>
@@ -625,7 +625,7 @@ list-or-variable:
625625

626626
<i id="grammar-list-or-variable">list-or-variable:</i>
627627
<i><a href="#grammar-list-intrinsic">list-intrinsic</a></i>
628-
<i><a href="#grammar-expression">expression</a></i>
628+
<i><a href="#grammar-variable">variable</a></i>
629629
</pre>
630630

631631
**Constraints**
@@ -635,7 +635,7 @@ list-or-variable:
635635
operand must be an expression that designates an array or object implementing
636636
the `ArrayAccess` interface (called the *source array*).
637637

638-
Each *expression* in *list-or-variable* must designate a variable (called
638+
Each *variable* in *list-or-variable* must designate a writable variable (called
639639
the *target variable*).
640640

641641
At least one of the elements of the *list-expression-list* must be non-empty.

spec/19-grammar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ The grammar notation is described in [Grammars section](09-lexical-structure.md#
437437

438438
<i id="grammar-list-or-variable">list-or-variable:</i>
439439
<i><a href="#grammar-list-intrinsic">list-intrinsic</a></i>
440-
<i><a href="#grammar-expression">expression</a></i>
440+
<i><a href="#grammar-variable">variable</a></i>
441441

442442
<i id="grammar-print-intrinsic">print-intrinsic:</i>
443443
print <i><a href="#grammar-expression">expression</a></i>

0 commit comments

Comments
 (0)