Browse Source

Fixed mistake

José Lorenzo Rodríguez 7 years ago
parent
commit
b37ff656cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Collection/CollectionTrait.php

+ 1 - 1
src/Collection/CollectionTrait.php

@@ -405,7 +405,7 @@ trait CollectionTrait
     public function takeLast($howMany)
     {
         if ($howMany < 1) {
-            throw new \InvalidArgumentException("lastN requires a number greater than 0");
+            throw new \InvalidArgumentException("takeLast requires a number greater than 0");
         }
 
         $iterator = $this->optimizeUnwrap();