Skip to content

Commit

Permalink
use last method in Mojo::DOM example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 12, 2014
1 parent d2aaa98 commit 662d7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/DOM.pm
Expand Up @@ -482,7 +482,7 @@ Mojo::DOM - Minimalistic HTML/XML DOM parser with CSS selectors
}
# Modify
$dom->div->p->[1]->append('<p id="c">C</p>');
$dom->div->p->last->append('<p id="c">C</p>');
$dom->find(':not(p)')->strip;
# Render
Expand Down

0 comments on commit 662d7bc

Please sign in to comment.