Skip to content

Commit

Permalink
Fix Baggy.pick(n).count-only
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 9, 2018
1 parent 53e82c9 commit b1c645e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Baggy.pm6
Expand Up @@ -529,7 +529,7 @@ my role Baggy does QuantHash {
($!todo := nqp::decont($todo))
)
}
method count-only() { $!todo - 1 }
method count-only(--> Int:D) { $!todo }
method sink-all() { $!todo := 0 }

}
Expand Down

0 comments on commit b1c645e

Please sign in to comment.