Navigation Menu

Skip to content

Commit

Permalink
fixed another bug in AUTOLOAD example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 13, 2014
1 parent b7c377c commit 6853de6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Collection.pm
Expand Up @@ -339,9 +339,9 @@ all elements in the collection directly and create a new collection from the
results, similar to L</"pluck">.
# "<h2>Test1</h2><h2>Test2</h2>"
my $collection = Mojo::Collection->new;
push @$collection, Mojo::DOM->new("<h1>$_</h1>") for 1 .. 2;
$collection->find('h1')->type('h2')->prepend_content('Test')->join;
my $collection = Mojo::Collection->new(
Mojo::DOM->new("<h1>1</h1>"), Mojo::DOM->new("<h1>2</h1>"));
$collection->at('h1')->type('h2')->prepend_content('Test')->join;
=head1 OPERATORS
Expand Down

0 comments on commit 6853de6

Please sign in to comment.