Moose::throw_error -> Moose->throw_error
[gitmo/Moose.git] / lib / Moose / Meta / TypeCoercion / Union.pm
index 1563483..1eef306 100644 (file)
@@ -18,7 +18,7 @@ sub compile_type_coercion {
     my $type_constraint = $self->type_constraint;
     
     (blessed $type_constraint && $type_constraint->isa('Moose::Meta::TypeConstraint::Union'))
-     || Moose::throw_error("You can only a Moose::Meta::TypeCoercion::Union for a " .
+     || Moose->throw_error("You can only a Moose::Meta::TypeCoercion::Union for a " .
                 "Moose::Meta::TypeConstraint::Union, not a $type_constraint");
     
     $self->_compiled_type_coercion(sub {
@@ -43,7 +43,7 @@ sub compile_type_coercion {
 sub has_coercion_for_type { 0 }
 
 sub add_type_coercions {
-    Moose::throw_error("Cannot add additional type coercions to Union types");
+    Moose->throw_error("Cannot add additional type coercions to Union types");
 }
 
 1;