Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
count-only doesn't take any params
  • Loading branch information
lizmat committed Sep 19, 2015
1 parent 244b7b4 commit c1af489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Iterator.pm
Expand Up @@ -71,7 +71,7 @@ my role Iterator {
# in situations such as "foo".IO.lines.elems, where we're only interested
# in the number of lines in the file, rather than the contents of the
# lines.
method count-only($) {
method count-only() {
my int $i = 0;
$i = $i + 1 until self.pull-one() =:= IterationEnd;
$i
Expand Down

0 comments on commit c1af489

Please sign in to comment.