File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -551,10 +551,10 @@ variable name:
551
551
552
552
Aliases are also possible that way:
553
553
554
- sub aliase -named(:color(:$colour), :type(:class(:$kind))) { say $colour ~ " " ~ $kind }
555
- aliase -named(color => "red", type => "A"); # both name can be use
556
- aliase -named(colour => "green", type => "B"); # more than two name is ok
557
- aliase -named(color => "white", class => "C"); # every alias is independent
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
557
+ alias -named(color => "white", class => "C"); # every alias is independent
558
558
559
559
More use of alias can be found in L < sub MAIN|/language/functions#sub_MAIN >
560
560
You can’t perform that action at this time.
0 commit comments