Fix a bug about immutablizing anonymous classes
gfx [Fri, 9 Oct 2009 04:37:26 +0000 (13:37 +0900)]
lib/Mouse/Meta/Method/Constructor.pm

index 1d55a97..315051f 100644 (file)
@@ -133,7 +133,7 @@ sub _generate_processattrs {
     }
 
     if($metaclass->is_anon_class){
-        push @res, q{$instnace->{__METACLASS__} = $metaclass;};
+        push @res, q{$instance->{__METACLASS__} = $metaclass;};
     }
 
     if($has_triggers){