Skip to content

Commit

Permalink
doc: fix groupBy example
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 31, 2023
1 parent 1bfd964 commit 55f1989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/code/operations/groupBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@

$groupByCallback = static fn (string $char, int $key): int => $key;

$collection = Collection::fromIterable($callback())
$collection = Collection::fromIterable($generator())
->groupBy($groupByCallback); // [1 => ['a', 'b', 'c'], 2 => ['d', 'e'], 3 => ['f']]

0 comments on commit 55f1989

Please sign in to comment.