Skip to content

Commit bc2470c

Browse files
author
Jan-Olof Hendig
committed
Fixed erroneous example output and formatting
1 parent 557d5e4 commit bc2470c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Type/Signature.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ within the list, but keep the arguments more or less as-is:
433433
my @array = <a b c>;
434434
my $list := <d e f>;
435435
sub b(**@b) { @b.perl.say };
436-
b(@array); # OUTPUT: «[["a", "b", "c"]]␤»
436+
b(@array); # OUTPUT: «[["a", "b", "c"],]␤»
437437
b(1, $list, [2, 3]); # OUTPUT: «[1, ("d", "e", "f"), [2, 3]]␤»
438-
b([1, 2]); # OUTPUT: «[[1, 2]]␤»
438+
b([1, 2]); # OUTPUT: «[[1, 2],]␤»
439439
b(1, [1, 2], ([3, 4], 5)); # OUTPUT: «[1, [1, 2], ([3, 4], 5)]␤»
440440
b(($_ for 1, 2, 3)); # OUTPUT: «[(1, 2, 3),]␤»
441441
@@ -504,9 +504,9 @@ as the parameters were declared.
504504
In the case of named arguments and parameters, only the name is used for
505505
mapping arguments to parameters
506506
507-
=for code :allow<L>
508-
sub named(:$x, :$y) { "x=$x y=$y" }
509-
named( y => 5, x => 4); # RESULT: «x=4 y=5»
507+
=for code :allow<L>
508+
sub named(:$x, :$y) { "x=$x y=$y" }
509+
named( y => 5, x => 4); # RESULT: «x=4 y=5»
510510
511511
It is possible to have a different name for a named parameter than the
512512
variable name:

0 commit comments

Comments
 (0)