Skip to content
Browse files

Switch from sprintf to p6 interpolation.

Don't use sprintf (which doesn't work well yet in JVM) for something we can do with good old interpolation.
  • Loading branch information...
1 parent c96b216 commit c83b634207c589cd43ae6149a948c47a9dbedb80 @colomon colomon committed Jul 2, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/
5 src/core/
@@ -970,9 +970,8 @@ my class Str does Stringy {
my Int $outdent = $steps ~~ Whatever ?? $common-prefix
!! -$steps;
- warn sprintf('Asked to remove %d spaces, ' ~
- 'but the shortest indent is %d spaces',
- $outdent, $common-prefix) if $outdent > $common-prefix;
+ warn "Asked to remove $outdent spaces, but the shortest indent is $common-prefix spaces"
+ if $outdent > $common-prefix;
# Work backwards from the right end of the indent whitespace, removing
# array elements up to # (or over, in the case of tab-explosion)

0 comments on commit c83b634

Please sign in to comment.
Something went wrong with that request. Please try again.