Skip to content

Commit

Permalink
Another oopsie, JimmyZ++ for spotting
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 5, 2015
1 parent cdf2521 commit de715e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Str.pm
Expand Up @@ -1098,8 +1098,8 @@ my class Str does Stringy { # declared in BOOTSTRAP

$result
}
multi method split(Str:D \string,@needles,$parts;; :$all, :$keep-indices) {
my @result = self.split(string,@needles,:$all,:$keep-indices);
multi method split(Str:D: @needles,$parts;; :$all, :$keep-indices) {
my @result = self.split(@needles,:$all,:$keep-indices);
nqp::istype($parts,Whatever) || $parts === Inf
?? @result
!! @result.head($all || $keep-indices ?? $parts + $parts !! $parts)
Expand Down

0 comments on commit de715e9

Please sign in to comment.