From 4cf6c1258565145dd59fe313198ac14e5e408cf7 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Thu, 29 Oct 2015 17:51:32 +0100 Subject: [PATCH 1/2] Clarified ambiguous wording In this context, "even" can be misunderstood as "actually". --- components/dom_crawler.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 482673e49f6..17b53b5684d 100644 --- a/components/dom_crawler.rst +++ b/components/dom_crawler.rst @@ -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 even nodes + // filter every second node return ($i % 2) == 0; }); From 68ff08ffe41214542f248e217aad907bb45ab993 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 1 Nov 2015 21:18:23 +0100 Subject: [PATCH 2/2] Update dom_crawler.rst --- components/dom_crawler.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 17b53b5684d..2bb74fb4ac4 100644 --- a/components/dom_crawler.rst +++ b/components/dom_crawler.rst @@ -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; });