Skip to content

Commit 82b8032

Browse files
committed
Spec fix for #126172
1 parent bab6c34 commit 82b8032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S07-lists.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ For example, consider the C<push> method:
8181
@a.push: 1, 2, 3; # pushes 3 values to @a
8282
@a.push: [1, 2, 3]; # pushes 3 values to @a
8383
@a.push: @b; # pushes @b.elems values to @a
84+
@a.push: @b,; # same, trailing comma doesn't make > 1 argument
8485
@a.push: $(1, 2, 3); # pushes 1 value (a List) to @a
8586
@a.push: $[1, 2, 3]; # pushes 1 value (an Array) to @a
86-
@a.push: @b,; # pushes 1 value (whatever is in @b)
8787

8888
Additionally, the list constructor (the C<< infix:<,> >> operator) and the
8989
array composer (the C<[...]> circumfix) follow the rule:

0 commit comments

Comments
 (0)