Skip to content

Commit 208eabf

Browse files
committed
[S05] be a bit more precise in :nth wording
1 parent 96bd7e5 commit 208eabf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S05-regex.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ which is the same as:
508508
m/(\d+)/ && m:c/(\d+)/ && s:c/(\d+)/@data[$0]/;
509509

510510
The argument to C<:nth> is allowed to be a list of integers, but such a list
511-
should be monotonically increasing. (Values which are less than or equal to the previous
512-
value will be ignored.) So:
511+
should be monotonically increasing. (Values which are less than or equal to
512+
any previous value will be ignored.) So:
513513

514514

515515
:nth(2,4,6...*) # return only even matches

0 commit comments

Comments
 (0)