From ab07e3fdaec1013d17ccf88a5c27bcf83333437c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Wed, 5 Sep 2018 22:18:06 +0200 Subject: [PATCH] Fixed example --- src/Collection/CollectionInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collection/CollectionInterface.php b/src/Collection/CollectionInterface.php index 7459e39cf91..d4efc8dcc32 100644 --- a/src/Collection/CollectionInterface.php +++ b/src/Collection/CollectionInterface.php @@ -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];