X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FUtil%2FTypeConstraints.pm;h=c84c75cbd375cce7e43ae0b05992c92e55f69309;hb=4060c871da12ba3c5e88986ed121a8254f906bd6;hp=cee7f5ef166bbf62a33cb4c5d8becf7b8a397111;hpb=30b28db360894f79271c863e40232c5f6417eb51;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Util/TypeConstraints.pm b/lib/Mouse/Util/TypeConstraints.pm index cee7f5e..c84c75c 100644 --- a/lib/Mouse/Util/TypeConstraints.pm +++ b/lib/Mouse/Util/TypeConstraints.pm @@ -398,7 +398,7 @@ sub find_or_parse_type_constraint { } sub find_or_create_does_type_constraint{ - my $type = find_or_parse_type_constriant(@_) || role_type(@_); + my $type = find_or_parse_type_constraint(@_) || role_type(@_); if($type->{type} && $type->{type} ne 'Role'){ Carp::cluck("$type is not a role type");