File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -552,11 +552,11 @@ variable name:
552
552
Aliases are also possible that way:
553
553
554
554
sub alias-named(:color(:$colour), :type(:class(:$kind))) { say $colour ~ " " ~ $kind }
555
- alias-named(color => "red", type => "A"); # both name can be use
556
- alias-named(colour => "green", type => "B"); # more than two name is ok
555
+ alias-named(color => "red", type => "A"); # both names can be used
556
+ alias-named(colour => "green", type => "B"); # more than two names are ok
557
557
alias-named(color => "white", class => "C"); # every alias is independent
558
558
559
- More use of alias can be found in L < sub MAIN|/language/functions#sub_MAIN >
559
+ More use of aliases can be found in L < sub MAIN|/language/functions#sub_MAIN >
560
560
561
561
A function with named arguments can be called dynamically, dereferencing a
562
562
L < Pair|/type/Pair > with C < | > to turn it into a named argument.
@@ -788,4 +788,3 @@ Defined as:
788
788
Throws C < X::Cannot::Capture > .
789
789
790
790
= end pod
791
-
You can’t perform that action at this time.
0 commit comments