Skip to content

Commit

Permalink
Update Signature.pod6
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun committed Oct 10, 2017
1 parent 3b12be9 commit c56ff63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/Type/Signature.pod6
Expand Up @@ -551,10 +551,10 @@ variable name:
Aliases are also possible that way:
sub aliase-named(:color(:$colour), :type(:class(:$kind))) { say $colour ~ " " ~ $kind }
aliase-named(color => "red", type => "A"); # both name can be use
aliase-named(colour => "green", type => "B"); # more than two name is ok
aliase-named(color => "white", class => "C"); # every alias is independent
sub alias-named(:color(:$colour), :type(:class(:$kind))) { say $colour ~ " " ~ $kind }
alias-named(color => "red", type => "A"); # both name can be use
alias-named(colour => "green", type => "B"); # more than two name is ok
alias-named(color => "white", class => "C"); # every alias is independent
More use of alias can be found in L<sub MAIN|/language/functions#sub_MAIN>
Expand Down

0 comments on commit c56ff63

Please sign in to comment.