Skip to content

Commit d6548d0

Browse files
committed
Improves descripton of prepend
1 parent 54ea17e commit d6548d0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/Type/Any.pod6

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,10 @@ Defined as:
638638
Creates a L<Seq> from 1-item list's iterator and uses
639639
L«C<Seq.skip>|/type/Seq#method_skip» on it.
640640
641-
You can apply them to classes too, resulting in empty lists or lists that
642-
contain a single class. This is not a real use case, and it is mostly intended
643-
to show the calling syntax. Please note that calling C<skip> without argument is
644-
equivalente to C<skip(1)>.
641+
You can apply them to classes too, resulting in empty lists or lists
642+
that contain a single class. This is not a real use case, and it is
643+
mostly intended to show the calling syntax. Please note that calling
644+
C<skip> without argument is equivalente to C<skip(1)>.
645645
646646
say Any.skip; # OUTPUT: «()␤»
647647
say Any.skip(5); # OUTPUT: «()␤»
@@ -655,8 +655,9 @@ Defined as:
655655
multi method prepend(--> Array)
656656
multi method prepend(@values --> Array)
657657
658-
Initializes L<Any> variable as empty L<Array> and calls
659-
L«C<Array.prepend>|/type/Array#method_prepend» on it.
658+
Called with no arguments on an empty variable, it initializes it as an
659+
empty L<Array>; if called with arguments, it creates an array and then
660+
applies L«C<Array.prepend>|/type/Array#method_prepend» on it.
660661
661662
my $a;
662663
say $a.prepend; # OUTPUT: «[]␤»

0 commit comments

Comments
 (0)