fixed the remaining spelling errors + improved some wording in the process
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Component / ContextClosure.pm
index 475b962..9c3139a 100644 (file)
@@ -6,7 +6,6 @@ use namespace::autoclean;
 
 sub make_context_closure {
     my ($self, $closure, $ctx) = @_;
-    my $weak_ctx = $ctx;
     weaken $ctx;
     return sub { $closure->($ctx, @_) };
 }
@@ -23,7 +22,7 @@ Catalyst::Component::ContextClosure - Moose Role for components which need to cl
 
     package MyApp::Controller::Foo;
     use Moose;
-    use namespace::autoclean;
+    use namespace::clean -except => 'meta';
     BEGIN {
         extends 'Catalyst::Controller';
         with 'Catalyst::Component::ContextClosure';
@@ -34,7 +33,7 @@ Catalyst::Component::ContextClosure - Moose Role for components which need to cl
         $ctx->stash(a_closure => $self->make_context_closure(sub {
             my ($ctx) = @_;
             $ctx->response->body('body set from closure');
-        }, $ctx);
+        }, $ctx));
     }
 
 =head1 DESCRIPTION
@@ -64,10 +63,14 @@ L<Catalyst::Controller>
 
 L<CatalystX::LeakChecker>
 
+=begin stopwords
+
 =head1 AUTHOR
 
 Florian Ragwitz E<lt>rafl@debian.orgE<gt>
 
+=end stopwords
+
 =head1 COPYRIGHT
 
 This library is free software. You can redistribute it and/or modify it under