Skip to content

Commit

Permalink
Minor pod improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Dec 23, 2024
1 parent 891469f commit ef3fbb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Type/Tiny/Manual/UsingWithMoo.pod
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,9 @@ It would be called like this:
);

The additional parameters are slurped into an arrayref and checked against
B<< ArrayRef[NonEmptyStr] >>.
B<< ArrayRef[NonEmptyStr] >>. Note that with a slurpy arrayref like this,
the method receives the values as an arrayref even though they were passed
as a list.

Optional parameters are only allowed after required parameters, and B<Slurpy>
parameters are only allowed at the end. (And there can only be a at most
Expand Down Expand Up @@ -746,7 +748,7 @@ pairs or a hashref:
} );

It is also possible for your check to I<accept> named parameters but
I<return> a positional list of parameters, using C<named_to_list>.
I<receive> a positional list of parameters, using C<named_to_list>.

package Horse {
use Types::Common::Numeric qw( PositiveInt );
Expand Down

0 comments on commit ef3fbb0

Please sign in to comment.