Skip to content

Commit d95a8e6

Browse files
committed
Reword sentence in the intro to lists
1 parent 6782472 commit d95a8e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/List.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ L<subscripts|/language/subscripts>.
2222
In Perl 6, assigning a C<List> to a scalar variable does not lose
2323
information. The difference is that iteration generally treats a
2424
list (or any other list-like object, like a L<Seq|/type/Seq> or an L<Array|/type/Array>)
25-
inside a scalar as a single element, as long as it's part of another .
25+
inside a scalar as a single element.
2626
2727
my $s = (1, 2, 3);
2828
for $s { } # one iteration
@@ -36,7 +36,7 @@ inside a scalar as a single element, as long as it's part of another .
3636
for @a { } # three iterations
3737
for @a.item { } # one iteration
3838
39-
C<.item> can often be written as C<$( ... )>, and on an array variable
39+
C<.item> is often written as C<$( ... )> and, on array variables,
4040
even as C<$@a>.
4141
4242
Lists generally don't interpolate (flatten) into other lists, except

0 commit comments

Comments
 (0)