Skip to content

Commit 85322f7

Browse files
committed
Fixes warning and changes to list, refs e01b3ca and follows @coke advice
1 parent e01b3ca commit 85322f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Language/list.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ an elegant system for handling them.
1515
Literal L<C<List>s|/type/List> are created with commas and semicolons B<not>
1616
with parentheses, so:
1717
18-
our @list = 1, 2; # This is two-element list
19-
@list = (1, 2); # This is also a List, in parentheses
20-
@list = (1; 2); # same List (see below)
21-
@list = (1); # This is not a List, just a 1 in parentheses
22-
@list = (1,); # This is a one-element List
18+
1, 2; # This is two-element list
19+
our $list = (1, 2); # This is also a List, in parentheses
20+
$list = (1; 2); # same List (see below)
21+
$list = (1); # This is not a List, just a 1 in parentheses
22+
$list = (1,); # This is a one-element List
2323
2424
There is one exception, empty lists are created with just parenthesis:
2525

0 commit comments

Comments
 (0)