File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ sub the-answer() { 42 } # arity of 0
131131=end code
132132
133133The arity of a L<C<Callable>|/type/Callable> is one of the main selectors in
134- L<multi-dispatch|#Multi-dispatch>. Note that required named arguments C<(:$foo!)>
134+ L<multi-dispatch|#Multi-dispatch>. Note that required named arguments, e.g. C<(:$foo!)>,
135135count as arity.
136136
137137=head1 X<ASCII operator|Language,ASCII operator>
@@ -639,7 +639,7 @@ L<C<Parameter>|/type/Parameter> prototype and the arguments it was called with.
639639The selection process is primarily based on types and number of arguments
640640(L<arity|#Arity>), where the narrowest, most specific candidate wins,
641641typically without regard to the order of declaration. Note that required named
642- arguments C<(:$foo!)> count as arity. The C<is default> trait may be used as a
642+ arguments, e.g. C<(:$foo!)>, count as arity. The C<is default> trait may be used as a
643643tiebreaker in this first phase. There is also a secondary phase where some
644644different tiebreakers may be evaluated in order of declaration of the
645645methods or subs.
You can’t perform that action at this time.
0 commit comments