Skip to content

Commit

Permalink
fixed typo in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 10, 2014
1 parent 8fd68ed commit 1d6c327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -903,12 +903,12 @@ proxy object on which you can call the nested helpers.

helper 'cache_control.no_caching' => sub {
my $c = shift;
$c->res->header->cache_control('private, max-age=0, no-cache');
$c->res->headers->cache_control('private, max-age=0, no-cache');
};

helper 'cache_control.five_mins' => sub {
my $c = shift;
$c->res->header->cache_control('public, max-age=300');
$c->res->headers->cache_control('public, max-age=300');
};

get '/news' => sub {
Expand Down

0 comments on commit 1d6c327

Please sign in to comment.