Skip to content

Commit

Permalink
fixed a few more typos in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 7, 2014
1 parent e58b2c4 commit c5ad9b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -496,7 +496,7 @@ Continue dispatch chain with L<Mojolicious::Routes/"continue">.
=head2 cookie
my $cookie = $c->cookie('foo');
my $value = $c->cookie('foo');
my ($foo, $bar) = $c->cookie(['foo', 'bar']);
$c = $c->cookie(foo => 'bar');
$c = $c->cookie(foo => 'bar', {path => '/'});
Expand All @@ -509,7 +509,7 @@ than one cookie you can also use L</"every_cookie">.
=head2 every_cookie
my $cookies = $c->every_cookie('foo');
my $values = $c->every_cookie('foo');
Access all request cookie values with the same name. To access only one cookie
you can also use L</"cookie">.
Expand All @@ -534,13 +534,13 @@ excessively large, there's a 10MB limit by default.
=head2 every_signed_cookie
my $cookies = $c->every_signed_cookie('foo');
my $values = $c->every_signed_cookie('foo');
Access all signed request cookie values with the same name. To access only one
signed cookie you can also use L</"signed_cookie">.
# Get first signed cookie value
my $first = $c->every_signed_cookie('foo')->[0]->value;
my $first = $c->every_signed_cookie('foo')->[0];
=head2 finish
Expand Down Expand Up @@ -883,7 +883,7 @@ on browser.
=head2 signed_cookie
my $cookie = $c->signed_cookie('foo');
my $value = $c->signed_cookie('foo');
my ($foo, $bar) = $c->signed_cookie(['foo', 'bar']);
$c = $c->signed_cookie(foo => 'bar');
$c = $c->signed_cookie(foo => 'bar', {path => '/'});
Expand Down

0 comments on commit c5ad9b7

Please sign in to comment.