Browse Source

Fix docblock

ADmad 7 years ago
parent
commit
a56c9ffee0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Collection/CollectionInterface.php

+ 1 - 1
src/Collection/CollectionInterface.php

@@ -627,7 +627,7 @@ interface CollectionInterface extends Iterator, JsonSerializable
      * ```
      * $items = [1, 2, 3, 4, 5];
      *
-     * $last = (new Collection($items))->last(3);
+     * $last = (new Collection($items))->lastN(3);
      *
      * // Result will look like this when converted to array
      * [3, 4, 5];