houseabsolute / Params-ValidationCompiler

Build an optimized subroutine parameter validator once, use it forever
https://metacpan.org/release/Params-ValidationCompiler/
Other
4 stars 5 forks source link

Typo in docs #15

Closed djerius closed 7 years ago

djerius commented 7 years ago

In the documentation for the params option, there is conflicting information on what the value of named_to_list means:

If you pass an arrayref and named_to_list is false, the validator will expect positional params. Each element of the params arrayref should be a parameter spec.

If you pass an arrayref and named_to_list is false, the validator will expect named params, but will return a list of values. In this case the arrayref should contain a list of key/value pairs, where parameter names are the keys and the specs are the values.

I'm guessing the second false should be true