From de715e914d67ff0bbc14b573642d7d81bd6a8f5e Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Thu, 5 Nov 2015 15:07:18 +0100 Subject: [PATCH] Another oopsie, JimmyZ++ for spotting --- src/core/Str.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Str.pm b/src/core/Str.pm index befcb34d325..82d1839da6f 100644 --- a/src/core/Str.pm +++ b/src/core/Str.pm @@ -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)