Skip to content

Commit

Permalink
fix typo in cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 16, 2016
1 parent 1806ccb commit 04f8e7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1360,10 +1360,10 @@ that they will be picked up automatically by the command line interface?
my ($self, @args) = @_;

# Leak secret passphrases
say for @{$self->app->secrets} if $args[0] eq 'secrets';
if ($args[0] eq 'secrets') { say for @{$self->app->secrets} }

# Leak mode
say $self->app->mode if $args[0] eq 'mode';
elsif ($args[0] eq 'mode') { say $self->app->mode }
}

1;
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Tutorial.pod
Expand Up @@ -14,9 +14,9 @@ applications.
=head2 Hello World

A simple Hello World application can look like this, L<strict>, L<warnings>,
L<utf8> and Perl 5.10 L<features|feature> are automatically enabled and a few
functions imported when you use L<Mojolicious::Lite>, turning your script into a
full featured web application.
L<utf8> and Perl 5.10 L<features|feature> are automatically enabled, and a few
L<functions|Mojolicious::Lite/"FUNCTIONS"> imported, when you use
L<Mojolicious::Lite>, turning your script into a full featured web application.

#!/usr/bin/env perl
use Mojolicious::Lite;
Expand Down

0 comments on commit 04f8e7e

Please sign in to comment.