Implement 'does' attribute in has()
[gitmo/Mouse.git] / lib / Mouse / Util / TypeConstraints.pm
index cee7f5e..c84c75c 100644 (file)
@@ -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");