Skip to content

Commit 877fe8e

Browse files
committed
Correct example to match output
1 parent bac11b6 commit 877fe8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Type/Signature.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ L<Pair|/type/Pair> with C<|> to turn it into a named argument.
481481
482482
The same can be used to convert a C<Hash> into named arguments.
483483
484+
sub f(:$also-named) { note &?ROUTINE.signature };
484485
my %pairs = also-named => 4;
485-
sub f(|c) {};
486486
f |%pairs; # «(:$also-named)␤»
487487
488488
A C<Hash> that contains a list may prove problematic when slipped into named

0 commit comments

Comments
 (0)