s/childtype/child_type/g - why ignore every naming standard already in use in the...
[gitmo/Moose.git] / lib / Moose / Util / TypeConstraints.pm
index d361872..15c1220 100644 (file)
@@ -398,7 +398,7 @@ sub _create_type_constraint ($$$;$$) {
     ) {
         ## creating the child is a job we delegate to the parent, since each
         ## parent may have local customization needs to influence it's child.
-        $constraint = $parent->create_childtype(%opts);
+        $constraint = $parent->create_child_type(%opts);
     } else {
         ## If for some reason the above couldn't create a type constraint, let's
         ## make sure to create something.