Skip to content

Commit 24babc1

Browse files
authored
Fixed array slice with [0..^*]
``` $ perl6 -e 'my @A = 1..5; say @A[0..^*]' (1 2 3 4) ```
1 parent 6e390bd commit 24babc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/list.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ mathematicians that C<Inf> equals C<Inf-1>.
475475
say @a[0..2]; # OUTPUT: «(1 2 3)␤»
476476
say @a[0..^2]; # OUTPUT: «(1 2)␤»
477477
say @a[0..*]; # OUTPUT: «(1 2 3 4 5)␤»
478-
say @a[0..^*]; # OUTPUT: «(1 2 3 4 5)␤»
478+
say @a[0..^*]; # OUTPUT: «(1 2 3 4)␤»
479479
say @a[0..Inf-1]; # OUTPUT: «(1 2 3 4 5)␤»
480480
481481
=head2 Array constructor context
@@ -749,4 +749,4 @@ creature should never be passed back to unsuspecting users.
749749
750750
=end pod
751751

752-
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
752+
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)