Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Sep 5, 2018
1 parent b37ff65 commit ab07e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collection/CollectionInterface.php
Expand Up @@ -565,7 +565,7 @@ public function take($size = 1, $from = 0);
* ```
* $items = [1, 2, 3, 4, 5];
*
* $last = (new Collection($items))->lastN(3);
* $last = (new Collection($items))->takeLast(3);
*
* // Result will look like this when converted to array
* [3, 4, 5];
Expand Down

0 comments on commit ab07e3f

Please sign in to comment.