Skip to content

Commit

Permalink
fix typo in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 13, 2018
1 parent 45ad9fc commit 0f9340e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -605,7 +605,7 @@ that create them for you.
my $minion = $c->ua->get_p($url->clone->query({q => 'minion'}));

# Render a response once both promises have been resolved
Mojo::Promise->all(mojo, $minion)->then(sub {
Mojo::Promise->all($mojo, $minion)->then(sub {
my ($mojo, $minion) = @_;
$c->render(json => {
mojo => $mojo->[0]->result->json('/hits/hits/0/_source/release'),
Expand Down

0 comments on commit 0f9340e

Please sign in to comment.