Skip to content

Commit 7b42420

Browse files
author
Jan-Olof Hendig
committed
The docs for .from was incorrect. moritz++
1 parent aeabf1a commit 7b42420

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/Type/List.pod6

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,16 +1045,14 @@ For more information about formats strings, see L<sprintf|/routine/sprintf>.
10451045
10461046
=head2 method from
10471047
1048-
'abcdefg' ~~ /(c)(d)/;
1049-
say $/.list.from; # 2
1050-
10511048
Assumes the list contains L«C<Match> objects|/type/Match» and returns the
1052-
value of C<.from> called on the last elements of the list.
1049+
value of C<.from> called on the first element of the list.
10531050
1054-
=head2 method from
1051+
'abcdefg' ~~ /(c)(d)/;
1052+
say $/.list.from; # 2
10551053
10561054
"abc123def" ~~ m:g/\d/;
1057-
say $/.from; # 3
1055+
say $/.list.from; # 3
10581056
10591057
Assumes the C<List> contains L«C<Match> objects|/type/Match», such as the
10601058
C<$/> variable being a C<List>, when using C<:g> modifier in regexes. Returns the

0 commit comments

Comments
 (0)