Skip to content

Commit

Permalink
Apparently a |c doesn't select the candidate
Browse files Browse the repository at this point in the history
Fixes error in error reporting in t/05-messages/03-errors.t .
dogbert++ for spotting
  • Loading branch information
lizmat committed Feb 28, 2018
1 parent 7835652 commit b688a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Str.pm
Expand Up @@ -2781,7 +2781,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
)
)
}
multi method substr(Str:D: Regex:D, |c) {
multi method substr(Str:D: Regex:D, $) {
die "You cannot use a Regex on 'substr', did you mean 'subst'?" # GH 1314
}
multi method substr(Str:D: \start, \want) {
Expand Down

0 comments on commit b688a6f

Please sign in to comment.