Subject: | possible documentation error in Error::TypeTiny::Assertion |
The documentation for explain() indicates it returns undef if no explanation is possible. It also seems to return an empty array ref, which would imply the same thing.
sub explain
{
my $e = shift;
return [] unless $e->has_type;
$e->type->validate_explain($e->value, $e->varname);
}
Are both possible, or does it only return an empty array ref (with the documentation being incorrect)?
Thanks,
Diab