Skip to content

Commit 230b688

Browse files
committed
Documentation examples fixed
1 parent adabb49 commit 230b688

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ use WS\Utils\Collections\CollectionFactory;
12981298

12991299
CollectionFactory::numbers(10)
13001300
->stream()
1301-
->allMatch(static function (int $el): bool {
1301+
->anyMatch(static function (int $el): bool {
13021302
return $el > 0;
13031303
}) // true, [1, 2, 3, 4, 5, 6, 7, 8, 9] are grate than 0
13041304
;

doc/README.ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ use WS\Utils\Collections\CollectionFactory;
12951295

12961296
CollectionFactory::numbers(10)
12971297
->stream()
1298-
->allMatch(static function (int $el): bool {
1298+
->anyMatch(static function (int $el): bool {
12991299
return $el > 0;
13001300
}) // true, [1, 2, 3, 4, 5, 6, 7, 8, 9] are grate than 0
13011301
;

0 commit comments

Comments
 (0)