Skip to content

Commit

Permalink
Update dom_crawler.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLandauer authored and weaverryan committed Nov 5, 2015
1 parent 5ebb833 commit 90f5621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Anonymous function can be used to filter with more complex criteria::
$crawler = $crawler
->filter('body > p')
->reduce(function (Crawler $node, $i) {
// filter every second node
// filter every other node
return ($i % 2) == 0;
});

Expand Down

0 comments on commit 90f5621

Please sign in to comment.