Skip to content

Commit

Permalink
Fixed mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Sep 5, 2018
1 parent 1faeb0f commit b37ff65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collection/CollectionTrait.php
Expand Up @@ -405,7 +405,7 @@ public function last()
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();
Expand Down

0 comments on commit b37ff65

Please sign in to comment.