Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Eliminate a double boxing spotted while bug hunting.
  • Loading branch information
jnthn committed Jul 21, 2012
1 parent c02c86d commit c0ca5a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/Str.pm
Expand Up @@ -64,9 +64,7 @@ my class Str does Stringy {
}

method chop(Str:D:) {
nqp::p6box_s(
nqp::p6box_s(pir::chopn__Ssi(nqp::unbox_s(self), 1))
);
nqp::p6box_s(pir::chopn__Ssi(nqp::unbox_s(self), 1))
}

method substr(Str:D: $start, $length? is copy) {
Expand Down

0 comments on commit c0ca5a3

Please sign in to comment.