Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Another .substr(0,1) -> .starts-with
  • Loading branch information
lizmat committed Jan 13, 2016
1 parent 919a3ed commit 3259ba3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/Parameter.pm
Expand Up @@ -270,9 +270,7 @@ my class Parameter { # declared in BOOTSTRAP
and nqp::isnull($!sub_signature) {
$name = '\\';
}
if $name.substr(0,1) ne '\\' {
$rest ~= ' is raw';
}
$rest ~= ' is raw' unless $name.starts-with('\\');
}
unless nqp::isnull($!sub_signature) {
my $sig = $!sub_signature.perl();
Expand Down

0 comments on commit 3259ba3

Please sign in to comment.