ソースを参照

Fixed mistake

José Lorenzo Rodríguez 7 年 前
コミット
b37ff656cb
1 ファイル変更1 行追加1 行削除
  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();