Skip to content

Commit 4f8e2aa

Browse files
committed
The $separator argument to .join isn't constrained to Str.
1 parent b72a3db commit 4f8e2aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/List.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Returns
8383
8484
=head3 join
8585
86-
multi sub join(Str:D $separator, *@list) returns Str:D
87-
multi method join(List:D: Str:D $separator) returns Str:D
86+
multi sub join($separator, *@list) returns Str:D
87+
multi method join(List:D: $separator) returns Str:D
8888
8989
Treats the elements of the list as strings, interleaves them with
9090
C<$separator> and concatenates everything into a single string.

0 commit comments

Comments
 (0)